注意事项
- 服务器中 删除文件、修改nginx.conf 文件需要 root 权限
- 进入服务器需要再服务器的防火墙中设置允许该网络进入
1、 安装nginx
yum install nginx
2、判断nginx 是否安装成功
wget http://127.0.0.1
输出类似以下信息表示成功
--2023-06-20 09:50:18-- http://127.0.0.1/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 840 [text/html]
Saving to: ‘index.html.2’
100%[=============================================================================================>] 840 --.-K/s in 0s
2023-06-20 09:50:18 (199 MB/s) - ‘index.html.2’ saved [8