1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nginxのインストール

Last updated at Posted at 2015-09-07
vim /etc/yum.repos.d/nginx.repo
/etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
sudo yum install -y nginx

cd /etc/nginx
sudo mkdir sites-avalable
sudo mkdir sites-enabled
# sudo rm -f conf.d/*.conf

cd conf.d
cp default.conf default.conf.org
cp example_ssl.conf example_ssl.conf.org


cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.org

sudo vim /etc/nginx/nginx.conf
/etc/nginx/nginx.conf
# 下から二行目に追加

include /etc/nginx/sites-enabled/*;

アップロードできるファイルサイズを上げて置く

nginx.conf


自動起動をON

service nginx start

chkconfig nginx on

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?