http://wiki.nginx.org/Install リポジトリの追加 # vi /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/x86_64 gpgcheck=0 enabled=1 ※yum install epel-releaseとしてからもインストール可能ですが、バージョンが古くなってしまいます。 nginxのインストール # yum install nginx nginxを起動する # systemctl start nginx.service nginxの自動起動設定 # systemctl enable nginx.service ファイヤーウォールの設定 # firewall-cmd --permanent --zone=pub
![NginxをCentOS7にインストールする - keiwt’s diary](https://cdn-ak-scissors.b.st-hatena.com/image/square/d349df59c28fc0c0e5dbb5464c9a15086c7dc096/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fk%2Fkeiwt%2F20150331%2F20150331180835.png)