Nginx安装

Unix
2021-04-14 / 0 评论 / 109 阅读 / 正在检测是否收录...

下载安装

rpm -ivh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.18.0-1.el7.ngx.x86_64.rpm

启动Nginx

systemctl start nginx

在浏览器访问服务器公网IP,出现Welcome to nginx!则Nginx启动成功!

将Nginx设为开机自启

systemctl enable nginx
3

评论 (0)

取消