日時
- 2018/6/21
環境
- Google Compute Engine
- CentOS 7
コマンド
$ sudo rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm$ sudo yum -y update nginx-release-centos$ sudo yum -y --enablerepo=nginx install nginx
バージョンの確認
$ nginx -v
nginx version: nginx/1.14.0
自動起動設定
$ sudo systemctl enable nginx
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
Nginx起動
$ sudo systemctl stop httpd
$ sudo systemctl start nginx
0 件のコメント:
コメントを投稿