Centos7安装nginx

Centos7安装nginx

Posted by Jae on October 18, 2018
安装
sudo vi /etc/yum.repos.d/nginx.repo

# Enter the following to the file
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

sudo yum makecache
sudo yum install nginx

启动

systemctl start nginx

< script src = " / js / bootstrap.min.js " >