扫码关注官方订阅号
请问我修改了php.ini后,如何重启php呢?我重启php-fpm没用,而且我的进程貌似有点问题
请问这样是否正常呢?
下图是我grep出来的信息
谢谢!!!
认证0级讲师
取决于你的PHP运行模式,如果是fastcgi,重启php-fpm即可,如果是apache mod,需要重启apache服务
/etc/init.d/apache2 restart
重启Apache服务看看。
比较常见的:service apache2 restart
假设你apahce安装目录为/usr/local/apache2apahce启动命令:/usr/local/apache2/bin/apachectl start apacehapache停止命令:/usr/local/apache2/bin/apachectl stopapache重启命令:/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
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
取决于你的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