Skip to content

Instantly share code, notes, and snippets.

@vmlive
vmlive / install_nginx.sh
Last active April 14, 2018 06:48
Nginx 一键安装脚本
#!/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 "========================================================================="
#!/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 / initial_centos6.sh
Last active August 22, 2017 01:47
Centos 6初始化脚本
#!/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
@vmlive
vmlive / proxy_cache.conf
Last active August 29, 2015 13:58
Nignx 缓存配置文件
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_store.conf
Last active August 29, 2015 13:58
Nginx镜像配置文件
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;
}