Jac*_*ers 4 php linux centos nginx
我有一个在 CentOS 上运行 nginx 的网络服务器。\n我更改了 php.ini 文件以增加一些限制,但是当我尝试重新启动 php 时,我收到错误消息:
\n\n[root@server ~]# php -v\nPHP 5.6.3 (cli) (built: Nov 23 2014 15:09:34)\nCopyright (c) 1997-2014 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies\nwith the ionCube PHP Loader v4.7.1, Copyright (c) 2002-2014, by ionCube Ltd.\n\n[root@server ~]# systemctl restart php-fpm56.service\xe2\x80\x8f\nFailed to issue method call: Unit php-fpm56.service\\xe2\\x80\\x8f.service failed to load: No such file or directory.\n\n[root@server ~]# systemctl restart php56.service\nFailed to issue method call: Unit php56.service failed to load: No such file or directory.\n\n[root@server ~]# service nginx reload\nRedirecting to /bin/systemctl reload nginx.service\n\n[root@server ~]# service nginx restart\nRedirecting to /bin/systemctl restart nginx.service\n\n[root@server ~]# systemctl restart php-fpm.service\nFailed to issue method call: Unit php-fpm.service failed to load: No such file or directory.\n\n[root@server ~]# systemctl restart php.service\nFailed to issue method call: Unit php.service failed to load: No such file or directory.\n\n[root@server ~]# systemctl restart php56.service\nFailed to issue method call: Unit php56.service failed to load: No such file or directory.\nRun Code Online (Sandbox Code Playgroud)\n\n知道如何重新启动 PHP 吗?提前致谢
\n好吧,我虽然老式的方法是解决方案:(service php-fpm56 restart实际上它有效,因为我在 SSH 终端中输入了它)
我想知道 \\xe2\\x80\\x8f 是什么。当我从 Skype 复制/粘贴到 ssh 终端时,似乎添加了一些额外的字符。
\n\n所以systemctl restart php-fpm56.service\xe2\x80\x8f如果我输入它而不是从 Skype 复制/粘贴它就会有工作......
谢谢大家
\n