点滴记忆

笔记

linux/freebsd重启nginx、mysql、php-fmp服务命令

2012-10-28 一抹阳光 操作系统

linux:

/etc/init.d/nginx start|stop|restart #启动|停止|重启nginx

/etc/init.d/php-fpm start|stop|restart #启动|停止|重启php-fpm

/etc/init.d/mysql start|stop|restart #启动|停止|重启msyq

 

freebsd:

/usr/local/etc/rc.d/nginx start|stop|restart #启动|停止|重启nginx

/usr/local/etc/rc.d/mysql-server start|stop|restart #启动|停止|重启mysql

/usr/local/etc/rc.d/php-fpm start|stop|restart #启动|停止|重启php-fpm

 

/usr/local/sbin/nginx #启动nginx

/usr/local/sbin/nginx -s stop #停止nginx

/usr/local/sbin/nginx -s reload #重启nginx