我按照https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7的说明进行操作,但是我是分步进行的重新启动php-fpm,它失败了。
错误日志:
错误:无法为地址“ var / run / php-fpm.d / www.conf”绑定侦听套接字:没有此类文件或目录错误:FPM初始化失败
环境:VirtualBox中安装了装有PHP,MariaDB和NginX的CentOS 7。
日志/报告:
journalctl显示:
localhost.localdomain php-fpm[2574]: Error: unable to bind listening socket for address '/var/run/php-fpm.d/www.conf' : No such file or directory
localhost.localdomain php-fpm[2574]:Error: FPM initialization failed
localhost.localdomain systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
localhost.localdomain systemd[1]: Failed to start the php fastCGI process manager.
Run Code Online (Sandbox Code Playgroud)
状态显示:
php-fpm.service - the php fastcgi process manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled)
Active: failed (result: exit-cod )
Process: 2639 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited,
status=78)
Main …Run Code Online (Sandbox Code Playgroud)