一、nginx
1、健康检查
[root@docker ~]# /usr/local/nginx/sbin/nginx -t
2、查看工作目录及配置文件、依赖版本
/usr/local/nginx/sbin/nginx -V
3、平滑加载
/usr/local/nginx/sbin/nginx -s reload
4、停止
/usr/local/nginx/sbin/nginx -s stop
5、指定配置文件启动nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
二、tomcat
1、启动
cd /usr/local/tomcat/bin
sh startup.sh
2、停止
sh shutdown.sh
三、php-fpm
php 5.3.3 以后的php-fpm 不再支持 php-fpm 以前具有的 /usr/local/php/sbin/php-fpm (start|stop|reload)等命令,所以不要再看这种老掉牙的命令了,需要使用信号控制:
master进程可以理解以下信号:
1、检查配置文件是否正确
/usr/local/php7.3.10/sbin/php-fpm -t
2、启动php
/usr/local/php7.3.10/sbin/php-fpm
或者
/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf
3、 重启php
kill -SIGUSR2 `cat /usr/local/php7.3.10/var/run/php-fpm.pid`
或者
kill -USR2 'cat /usr/local/php/var/run/php-fpm.pid' ##建议使用
4、停止php
kill -INT 'cat /usr/local/php/var/run/php-fpm.pid'
四、mysql
/www/server/mysql/bin/mysqld (start、stop、restart)
有问题请加博主微信进行沟通!
全部评论