系统:Centos7
Nginx:1.20
Mysql:8.0

Nginx安装:
yum -y install nginx
1.开机启动
systemctl enable nigin
2.启动服务
systemctl start nginx

nginx
3.重载服务
systemctl reload nginx

pkill -HUP nginx
4.重启服务
systemctl restart nginx
5.关闭服务
systemctl stop nginx

pkill nginx
6.Nginx进程管理
pstree |grep nginx

ps -ef |grep nginx
7.Nginx端口管理
netstat -tunpl |grep nginx
8.Nginx启动测试
直接访问80端口就行

Mysql安装:
1.安装
yum -y install mysql*
2.Mysql查看状态
systemctl status mysqld.service
3.Mysql加入开机启动
systemctl enable mysqld.service
4.Mysql启动
systemctl start mysqld.service
5.Mysql重载
systemctl reload mysqld.service
6.Mysql重启
systemctl restart mysqld.service
7.Mysql停止
systemctl stop mysqld.service
8.查看Mysql进程
pstree |grep mysqld
9.查看端口
netstat -tunpl |grep mysqld


西班牙馅饼
7 声望0 粉丝