Skip to content

Instantly share code, notes, and snippets.

@vmlive
vmlive / proxy_store.conf
Last active Aug 29, 2015
Nginx镜像配置文件
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;
}
@vmlive
vmlive / proxy_cache.conf
Last active Aug 29, 2015
Nignx 缓存配置文件
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;
}
@vmlive
vmlive / initial_centos6.sh
Last active Aug 22, 2017
Centos 6初始化脚本
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
@vmlive
vmlive / install_nginx.sh
Last active Apr 14, 2018
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 "========================================================================="