升级CentOS6.5内核,开启Nginx的fastopen和reuseport特性
来源:互联网 发布:编程使用的安卓模拟器 编辑:程序博客网 时间:2024/06/18 07:56
1. 导入public key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2. 安装ELRepo到Centos6.5中
rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
3. 安装kernel-lt
yum --enablerepo=elrepo-kernel install kernel-lt -y
4. 修改grub引导顺序
#编辑grub配置文件vim /etc/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda3# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0 #一般最新升级的内核映像位于第一位,所以这里保证 default=0即可!timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (3.10.101-1.el6.elrepo.x86_64) #最新3.10.101内核也就是这个了! root (hd0,0) kernel /vmlinuz-3.10.101-1.el6.elrepo.x86_64 ro root=UUID=6e3dc2ee-2daf-48a7-96e4-8b7ca821c23c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-3.10.101-1.el6.elrepo.x86_64.imgtitle CentOS (2.6.32-573.22.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-573.22.1.el6.x86_64 ro root=UUID=6e3dc2ee-2daf-48a7-96e4-8b7ca821c23c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-573.22.1.el6.x86_64.imgtitle CentOS (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=6e3dc2ee-2daf-48a7-96e4-8b7ca821c23c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-431.el6.x86_64.img
启用特性
echo "net.ipv4.tcp_fastopen = 3" >>/etc/sysctl.conf
重新编译
./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-cc-opt=-DTCP_FASTOPEN=23
0 0
- 升级CentOS6.5内核,开启Nginx的fastopen和reuseport特性
- CentOS6.5升级内核
- centos6.5升级linux内核
- yum 升级centos6.5内核
- centos6.5 升级和docker的安装
- Linux 4.6内核对TCP REUSEPORT的优化
- CentOS6.5升级内核到3.10.28
- CentOS6.5升级内核到3.10.28
- centos6.5升级内核到3.10
- CentOS6.5升级内核到3.10.28
- CentOS6.5升级内核到3.10.28
- CentOS6.5升级内核到4.0.0
- centos6.5 升级内核到3.2
- Centos6.5升级内核,并安装docker
- CentOS6.5升级内核到3.10.28
- centos6.4升级内核
- CentOS6.4 升级内核3.4.56步骤和方法
- centos6.4_86_64内核升级
- 源码编译问题
- Linux的3个文件时间
- (10)边填充算法
- 过去的2016,期待的2017,我与北京继续相伴。
- 求教,关于hbuilder的问题
- 升级CentOS6.5内核,开启Nginx的fastopen和reuseport特性
- CentOS 7将linux服务加入系统启动 systemd service
- CUDA从组成到编程(二) Hello World!
- 安全快速更改MySQL数据库名称
- mysql数据库的备份与恢复
- 机器学习 特征工程 特征离散化
- nginx超时转发机制
- 数据库连接池
- VC++ 工程添加 Unicode Debug 和 Unicode Release编译支持