CentOS6 and CentOS7 higher kernels One click installation [lotServer] Sharp Vicer

1. Support higher Linux kernel one click installation [lotServer] speed
2. Support one click to completely uninstall [lotServer] Sharp (no residue of this script installation)
3. Automatic kernel replacement is not supported CentOS6 and CentOS7 one click kernel replacement, one click installation of Ruisu [lotServer]
4. OpenVZ is not supported
All content comes from the Internet. I am not responsible for any legal responsibility, and only for learning
Update:2019.04.15

One click installation of [lotServer] Sharp speed:
bash <(wget --no-check-certificate -qO- https://github.com/MoeClub/lotServer/raw/master/Install.sh ) install

One click uninstall [lotServer] Sharp speed:
bash <(wget --no-check-certificate -qO- https://github.com/MoeClub/lotServer/raw/master/Install.sh ) uninstall

usage method:
Start command/appex/bin/lotServer.sh start
Stop acceleration/appex/bin/lotServer.sh stop
Status Query/app x/bin/lotServer.sh status
Restart/app x/bin/lotServer.sh restart

1. Renew the license (valid for 6 months)
wget -qO '/appex/etc/apx.lic' " https://api.moeclub.org/lotServer?ver=1&mac=00:00:00:00:00:00 "
Use ifconfig to check the MAC address of the network card and replace 00:00:00:00:00 (when the kernel version number is less than or equal to 3.11.20.10, please set ver=0)

2. Use KeyGen to update the license (lic file) (valid until 2099)
git clone https://github.com/Tai7sy/LotServer_KeyGen
cd LotServer_KeyGen
Php keygen.php 00:00:00:00:00:00 (Use ifconfig to view the MAC address of the network card and replace 00:00:00:00:00)
cp out.lic /appex/etc/apx.lic
Status Query/app x/bin/lotServer.sh status

3. CentOS7 starts to run lotServer automatically
chmod +x /etc/rc.local
vi /etc/rc.local
Add su - root - c "/app/bin/lotServer. sh start"

The figure shows CentOS Linux release 7.5.1804 installation [lotServer] sharp speed

CentOS6 and CentOS7 one click kernel replacement, one click installation of Ruisu [lotServer]

CentOS6 and CentOS7 one click kernel replacement, one click installation of Sharp [lotServer] [serverSpeeder]

CentOS6 and CentOS7 will be restarted after one click kernel replacement
wget --no-check-certificate https://www.zhangfangzhou.cn/sh/ruisu.sh
bash ruisu.sh


Manually replace the kernel
CentOS6 Replace Core
rpm -ivh http://file.asuhu.com/kernel/kernel-firmware-2.6.32-504.3.3.el6.noarch.rpm
rpm -ivh http://file.asuhu.com/kernel/kernel-2.6.32-504.3.3.el6.x86_64.rpm --force

View kernel version
cat /boot/grub/grub.conf | awk '$1=="title" {print i++ " : " $NF}'
0 : (2.6.32-504.3.3.el6.x86_64)
1 : (2.6.32-642.13.1.el6.x86_64)

Confirm kernel version
cat /boot/grub/grub.conf | awk '$1=="title" {print i++ " : " $NF}'|grep '2.6.32-504'|awk '{print $1}'

Set the boot kernel
vi /boot/grub/grub.conf
default=0

restart
reboot

Confirm kernel version
uname -r
2.6.32-504.3.3.el6.x86_64


CentOS7 Core Replacement
rpm -ivh http://file.asuhu.com/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force

View kernel
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)

Set the boot kernel
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 # View confirmation
Reboot


CentOS6 and 7 replace the kernel to complete one click installation of Ruisu [lotServer]

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

Check whether it is enabled after installation
lsmod |grep appex

uninstall
wget --no-check-certificate -O appex.sh https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh && chmod +x appex.sh && bash appex.sh uninstall

If you encounter a license error when installing with this script, you can try to update the license with this command
bash /appex/bin/serverSpeeder.sh renewLic


VPS recommendation
Tiler/bandwagonhost – $18/year KVM 1 core 512M 10G 500G 1Gbps six machine room
https://blog.asuhu.com/bandwagonhost.aspx