centos7 使用yum方式安装nginx

安装相关依赖:

yum -y install epel-release

安装nginx

yum -y install nginx

使用yum安装的好处是可以很方便的开启nginx服务
开启nginx服务
systemctl start nginx
设置开启启动
systemctl enable nginx

猜你喜欢

转载自blog.csdn.net/haeasringnar/article/details/80032078