[Linux] Linux系统服务优化 [ 技术分享 ]
来源:互联网 发布:可以撕衣服的软件 编辑:程序博客网 时间:2024/05/30 02:52
disable ipv6 (禁止IP V6):
#echo "alias net-pf-10 off" >> /etc/modprobe.conf
#echo "alias ipv6 off" >> /etc/modprobe.conf
#/sbin/chkconfig ip6tables off
disable selinux (禁止 SeLinux):
#sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
set vim coloure(设置编辑器字体):
#sed -i "8 s/^/alias vi='vim'/" /root/.bashrc
#echo 'syntax on' > /root/.vimrc
configure file max to 52100(优化文件数):
#echo "* soft nproc 65535" >>/etc/security/limits.conf
#echo "* hard nproc 65535" >>/etc/security/limits.conf
#echo "* soft nofile 65535" >>/etc/security/limits.conf
#echo "* hard nofile 65535" >>/etc/security/limits.conf
#echo "fs.file-max=65535">>/etc/sysctl.conf
disable UseDNS(ssh优化禁止UseDNS):
#sed -i "s/#UseDNS yes/UseDNS no/" /etc/ssh/sshd_config
#/etc/init.d/sshd restart
seting services(优化系统服务):
#SERVICES="acpid atd apmd avahi-daemon avahi-dnsconfd bluetooth capi cpuspeed cups dund firstboot hidd ip6tables isdn irda irattach mcstrans NetworkManager pcscd pand rawdevices sendmail sdpd yum-updatesd"
#chkconfig $service off
#service $service stop
原文:http://iblog.daobidao.com/linux-linux-system-service-optimization.DaoBiDao
- [Linux] Linux系统服务优化 [ 技术分享 ]
- 优化Ubuntu Linux的系统服务
- linux技术分享笔记
- linux服务优化
- 优化Linux 系统服务来提高引导速度(全)
- 优化Linux 系统服务来提高引导速度
- 常见Linux系统优化方法,关闭不必要的服务
- linux的系统服务
- Linux系统服务
- 有关linux系统服务
- Linux系统服务
- Linux 系统服务注册
- Linux系统服务
- linux主要系统服务
- Linux系统服务详解
- linux系统服务介绍
- Linux系统telnet服务
- Linux常用系统服务
- oracle 锁-1
- 【笔试面试题】腾讯2013实习生面试算法题及参考答案
- redis conf
- Django-- admin后台管理模块的使用
- hdu 2682——Tree(最小生成树)
- [Linux] Linux系统服务优化 [ 技术分享 ]
- ssh: connect to host localhost port 22: Connection refused
- Javascript中的"in" “for...in” 及对象/关联数组
- mysql的约束
- JAVA常用的一些排序算法
- 装饰者模式(Decorator Pattern)(二):HeadFirst中咖啡添加调料
- 【摘录】学习WindowServiceManager
- 程序员选择字体的标准是?
- go语言常见缺陷与陷阱一(defer)