系统: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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。