/usr/local/nginx/sbin/nginx
/etc/init.d/mysqlstart
/usr/local/php/sbin/php-fpmstart
nginx
——————
start
/usr/local/nginx/sbin/nginx
stop
/usr/local/nginx/sbin/nginx-sstop
reload
/usr/local/nginx/sbin/nginx-sreload
********************************************
php-fpm(fast-cgi)
——————
start
/usr/local/php/sbin/php-fpm
stop
/bin/ps-ef|grep‘php-fpm’|grep-vgrep|cut-c9-15|xargskill-9
********************************************
mysql
——————
start
/etc/init.d/mysqldstart
stop
/etc/init.d/mysqldstop
restart
/etc/init.d/mysqldrestart
********************************************
tomcat
——————
start
/usr/local/tomcat/bin/startup.sh
stop
/bin/ps-ef|grep‘tomcat’|grep-vgrep|cut-c9-15|xargskill-9
PHP的一般默认安装目录是:
/usr/local/php/
我们用php-fpm来进行重新加载配置文件(如php.ini):
/usr/local/php/sbin/php-fpm reload
注:/usr/local/php/sbin/php-fpm还有其他参数,包括:start|stop|quit|restart|reload|logrotate。
使用PHP-FPM来控制PHP-CGI的FastCGI进程
/usr/local/php/sbin/php-fpm {start|stop|quit|restart|reload|logrotate}
–start 启动php的fastcgi进程
–stop 强制终止php的fastcgi进程
–quit 平滑终止php的fastcgi进程
–restart 重启php的fastcgi进程
–reload 重新平滑加载php的php.ini
–logrotate 重新启用log文件