更换安装源
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-7.repo或者
curl -o /etc/yum.repos.d/CentOS-Base.repo
CentOS No package nginx available.
yum install epel-release
403权限问题解决
user改为你的用户名,我是root登录,所以就是root
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuY2NjdDMiZTNyITZ1YzMzAjY1EjM4MTN3IGOlVzNjR2MfdWbp9CXt92Yu4GZjlGbh5SZslmZxl3Lc9CX6MHc0RHaiojIsJye.png)
微信截图_20180715210025.png