Heim  >  Artikel  >  Backend-Entwicklung  >  ubuntu - 修改玩php.ini后如何重启SegmentFault

ubuntu - 修改玩php.ini后如何重启SegmentFault

WBOY
WBOYOriginal
2016-08-30 09:36:451991Durchsuche

请问我修改了php.ini后,如何重启php呢?
我重启php-fpm没用,而且我的进程貌似有点问题
ubuntu - 修改玩php.ini后如何重启SegmentFault

请问这样是否正常呢?

下图是我grep出来的信息ubuntu - 修改玩php.ini后如何重启SegmentFault

谢谢!!!

回复内容:

请问我修改了php.ini后,如何重启php呢?
我重启php-fpm没用,而且我的进程貌似有点问题
ubuntu - 修改玩php.ini后如何重启SegmentFault

请问这样是否正常呢?

下图是我grep出来的信息ubuntu - 修改玩php.ini后如何重启SegmentFault

谢谢!!!

取决于你的PHP运行模式,如果是fastcgi,重启php-fpm即可,如果是apache mod,需要重启apache服务

/etc/init.d/apache2 restart

重启Apache服务看看。

比较常见的:service apache2 restart

假设你apahce安装目录为/usr/local/apache2
apahce启动命令:/usr/local/apache2/bin/apachectl start apaceh
apache停止命令:/usr/local/apache2/bin/apachectl stop
apache重启命令:/usr/local/apache2/bin/apachectl restart
重启时不中断当前的连接,则应:/usr/local/sbin/apachectl graceful

如果apache是linux服务
service httpd start 启动
service httpd restart 重新启动
service httpd stop 停止服务

Ubuntu系统
启动 # sudo /etc/init.d/apache2 start
停止 # sudo /etc/init.d/apache2 stop
重启 # sudo /etc/init.d/apache2 restart

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:php5.3降到php5.2Nächster Artikel:求大神指导一下