yum -y install epel-release && yum -y install python3 file mailx postfix curl wget bzip2 gzip unzip python binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686 nmap-ncat
su csgoserver
cd
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh csgoserver
./csgoserver auto-install
./csgoserver start
cd /home/csgoserver/lgsm/config-lgsm/csgoserver
cat _default.cfg > csgoserver.cfg
mv _default.cfg _default.cfg.bak
cd /home/csgoserver/serverfiles/csgo
wget https://mms.alliedmods.net/mmsdrop/1.10/mmsource-1.10.7-git971-linux.tar.gz
wget https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6492-linux.tar.gz
tar -xzvf mmsource-1.10.7-git971-linux.tar.gz
tar -xzvf sourcemod-1.10.0-git6492-linux.tar.gz
cd /home/csgoserver/serverfiles
wget https://github.com/mylolis/csgo/raw/master/csgo.tar.gz
tar -xzvf csgo.tar.gz
修改addons/sourcemod/configs/core.cfg文件,找到"FollowCSGOServerGuidelines" "yes",把yes改成no之后保存。
echo '"STEAM_0:1:71835583" "99:z"' >> /home/csgoserver/serverfiles/csgo/addons/sourcemod/configs/admins_simple.ini