📜  nginx install centos7 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:34.191000             🧑  作者: Mango

代码示例1
sudo yum install epel-release
$ vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=https://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

sudo yum install nginx

sudo systemctl enable nginx
sudo systemctl start nginx