sudo sh -c "ulimit -n 64000 && exec su $LOGNAME"
exit
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
# Pass requests for / to localhost:8080:
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
nginx log ratation (0) | 2015.04.06 |
---|---|
ssl setting (0) | 2015.03.12 |
mac 에서 nginx 설치 및 설정 하기 (0) | 2014.10.24 |
Install
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
Setup
sudo yum install -y mongodb-org-shell-3.6.1 mongodb-org-mongos-3.6.1
sudo mkdir /var/log/mongodb
sudo chown -R centos:centos /var/log/mongodb/
mongos --configdb configRS/ip-10-20-0-71.ec2.internal:27019,ip-10-20-0-57.ec2.internal:27019,ip-10-20-10-155.ec2.internal:27019 --logpath /var/log/mongodb/mongos.log --fork
mongodb "convert to capped collection" effect (0) | 2018.02.23 |
---|---|
How to mount mongoDB disk to /data folder (0) | 2018.02.23 |
mongodb profiling 과 AWS EBS IOPS에대한 고찰이라고나 할까? (0) | 2015.05.06 |
Shading (0) | 2014.04.23 |