1 Star 0 Fork 0

胖纸_张毅/tlib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
doc.txt 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
qq66921494 提交于 2015-11-10 09:34 . .
centos7 begin========================================================
没有ifconfig -> yum install net-tools
重启ssd服务 -> systemctl restart sshd.service
关闭selinux -> vi /etc/sysconfig/selinux添加SELINUX=disabled
关闭防火墙 -> systemctl stop firewalld
systemctl disable firewalld.service
TCP连接数 -> vi /etc/security/limits.conf添加俩行
* soft nofile 1024000
* hard nofile 1024000
-> vi /etc/pam.d/login添加一行
session required /lib/security/pam_limits.so
-> vi /etc/sysctl.conf添加一行
net.ipv4.ip_local_port_range = 1024 65000
centos7 end==========================================================
ulimit -b unlimited
ulimit -c unlimited
ulimit -d unlimited
ulimit -e unlimited
ulimit -f unlimited
ulimit -i unlimited
ulimit -l unlimited
ulimit -m unlimited
ulimit -n unlimited
ulimit -p unlimited
ulimit -q unlimited
ulimit -r unlimited
ulimit -s unlimited
ulimit -t unlimited
ulimit -u unlimited
ulimit -v unlimited
ulimit -x unlimited
* soft core unlimited
* soft data unlimited
* soft fsize unlimited
* soft memlock unlimited
* soft nofile unlimited
* soft rss unlimited
* soft stack unlimited
* soft cpu unlimited
* soft nproc unlimited
* soft as unlimited
* soft maxlogins unlimited
* soft maxsyslogins unlimited
* soft priority unlimited
* soft locks unlimited
* soft sigpending unlimited
* soft msgqueue unlimited
* soft nice unlimited
* soft rtprio unlimited
* hard core unlimited
* hard data unlimited
* hard fsize unlimited
* hard memlock unlimited
* hard nofile 1024000
* hard rss unlimited
* hard stack unlimited
* hard cpu unlimited
* hard nproc unlimited
* hard as unlimited
* hard maxlogins unlimited
* hard maxsyslogins unlimited
* hard priority unlimited
* hard locks unlimited
* hard sigpending unlimited
* hard msgqueue unlimited
* hard nice unlimited
* hard rtprio unlimited
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/osczyup/tlib.git
git@gitee.com:osczyup/tlib.git
osczyup
tlib
tlib
master

搜索帮助