Skip to content
Yaming edited this page Aug 28, 2015 · 16 revisions

Welcome to the QPush wiki!

一、运行环境

1.创建运行用户(如jetty), 得到运行目录/home/jetty

2.配置参数(/etc/security/limits.conf)

* soft nofile 65535
* hard nofile 65535

3.配置参数(/etc/sysctl.conf)

vm.swappiness = 0
vm.overcommit_memory = 1
net.ipv4.neigh.default.gc_stale_time=120
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.all.arp_announce=2
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_synack_retries = 2
net.ipv4.conf.lo.arp_announce=2

fs.file-max = 1048576
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.tcp_mem = 786432 2097152 3145728
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_wmem = 4096 4096 16777216
 
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000

4.安装Redis

https://github.com/antirez/redis

5.安装MySQL

http://www.cnblogs.com/shanyou/p/3278692.html
http://www.tuicool.com/articles/m6r6Bjj

运行参数

部署

Clone this wiki locally