View proxy_store.conf
user nginx nginx; | |
worker_processes 8; | |
error_log /var/log/nginx/error.log crit; | |
pid /var/run/nginx.pid; | |
#Specifies the value for maximum file descriptors that can be opened by this process. | |
worker_rlimit_nofile 65535; | |
events { | |
use epoll; | |
worker_connections 65535; | |
} |
View proxy_cache.conf
user nginx nginx; | |
worker_processes 8; | |
error_log /var/log/nginx/error.log crit; | |
pid /var/run/nginx.pid; | |
#Specifies the value for maximum file descriptors that can be opened by this process. | |
worker_rlimit_nofile 65535; | |
events { | |
use epoll; | |
worker_connections 65535; | |
} |
View initial_centos6.sh
#!/bin/bash | |
# | |
# # sample usage | |
# curl -o /tmp/initial_centos6.sh https://gist.githubusercontent.com/vmlive/9994394/raw | |
# nohup /bin/bash /tmp/initial_centos6.sh > /tmp/initial_centos6.sh.log && rm -f /tmp/initial_centos6.sh & | |
# | |
#this script is only for CentOS 6 | |
#check the OS |
View init.d.nginx
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx |
View install_nginx.sh
#!/bin/bash | |
clear | |
echo "=========================================================================" | |
echo "Nginx script V1.0 for CentOS/RadHat Linux Written by llama" | |
echo "=========================================================================" | |
echo "A tool to auto-compile & install Nginx on Linux " | |
echo "" | |
echo "For more information please contact llama" | |
echo "=========================================================================" |