软件安装:Nginx服务器安装之yum在线安装与源码文件安装
1.在线安装nginx
sudo yum install nginx
2.启动nginx服务器
sudo systemctl start nginx.service
3.浏览器访问ip地址
4.查看该服务器(可执行文件)安装到哪儿了
whereis nginx
# 通过whereis nginx命令可以获悉:
# 1)配置文件路径: /etc/nginx/nginx.conf
# 2)配置html的路径: /usr/share/nginx/html
5.查看nginx服务->在后台一直运行
原创
2021-03-22 23:15:45 ·
169 阅读 ·
0 评论