1.Centos7 ifconfig command not found解决方案
解决方案很简单:
yum install net-tools
然后执行
ifconfig -a
2.centos7 修改默认语言
(1)先检测是否安装了语言包
# locale -a
没有就安装
# yum install kde-l10n-English
(2)查看当前语言
# locale
如果不是中文、则更改i18n国际化和locale.conf本土化配置文件(更改到如下图所示)
# vim /etc/locale.conf
# source /etc/locale.conf
# vim /etc/sysconfig/i18n
# source /etc/sysconfig/i18n
依此更改local.conf和i18n,并保存
vi /etc/locale.conf
# 修改成英文
LANG="en_US.UTF-8"
# 修改成中文
LANG="zh_CN.UTF-8"
vi /etc/sysconfig/i18n
#修改如下
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
然后重启系统就生效
3.CentOS7更换内核
rpm -ivh http://file.asuhu.com/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force
查看内核
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
0 : CentOS Linux 7 Rescue 1f0eb10f866e4eeea5ec2c016d383869 (3.10.0-229.1.2.el7.x86_64)
1 : CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core)
2 : CentOS Linux (3.10.0-514.2.2.el7.x86_64) 7 (Core)
3 : CentOS Linux (0-rescue-98f15324ee1542fdaf9b60c933ff0e2c) 7 (Core)
设置启动的内核
grub2-set-default `awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg | grep '(3.10.0-229.1.2.el7.x86_64) 7 (Core)'|awk '{print $1}'`
grub2-editenv list #查看确认
reboot 重启
#查看系统安装了哪些内核包
[root@bigapp-slave27 ~]# rpm -qa |grep kernel
kernel-3.10.0-327.el7.x86_64
kernel-headers-3.10.0-514.6.1.el7.x86_64
kernel-tools-libs-3.10.0-327.el7.x86_64
kernel-3.10.0-514.16.1.el7.x86_64
kernel-tools-3.10.0-327.el7.x86_64
#使用yum remove 或rpm -e 删除无用内核
yum remove kernel-3.10.0-327.el7.x86_64
4.安装锐速
先安装wget或ifconfig
yum -y install net-tools wget
wget --no-check-certificate -O appex.sh https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh && chmod +x appex.sh && bash appex.sh install