我在CentOS上运行了一个运行nginx的网络服务器。 我修改了我的php.ini文件以增加一些限制,但是当我尝试重启php时,我收到错误消息:
[root@server ~]# php -v
PHP 5.6.3 (cli) (built: Nov 23 2014 15:09:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.7.1, Copyright (c) 2002-2014, by ionCube Ltd.
[root@server ~]# systemctl restart php-fpm56.service
Failed to issue method call: Unit php-fpm56.service\xe2\x80\x8f.service failed to load: No such file or directory.
[root@server ~]# systemctl restart php56.service
Failed to issue method call: Unit php56.service failed to load: No such file or directory.
[root@server ~]# service nginx reload
Redirecting to /bin/systemctl reload nginx.service
[root@server ~]# service nginx restart
Redirecting to /bin/systemctl restart nginx.service
[root@server ~]# systemctl restart php-fpm.service
Failed to issue method call: Unit php-fpm.service failed to load: No such file or directory.
[root@server ~]# systemctl restart php.service
Failed to issue method call: Unit php.service failed to load: No such file or directory.
[root@server ~]# systemctl restart php56.service
Failed to issue method call: Unit php56.service failed to load: No such file or directory.
知道如何重启PHP吗?提前致谢
答案 0 :(得分:1)
好吧,我虽然旧的时尚方式是解决方案: service php-fpm56 restart
(实际上它起作用,因为我在SSH终端输入了它)
我想知道什么是\ xe2 \ x80 \ x8f。当我从skype复制/粘贴到ssh终端时,似乎添加了一些额外的字符。
如果我输入 systemctl restart php-fpm56.service
,而不是从skype复制/粘贴它,那么 {{1}} 会有效...
感谢所有人