cs go 服务器搭建

1. 安装需要的组件

#yum install glibc.i686 libstdc++.i686

2. 为了安全,新建一个steam用户来运行服务器

#useradd steam
#su steam

3. 下载SteamCMD

#wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

4. 解压SteamCMD

#steamcmd +login anonymous +force_install_dir ../csgo_ds +app_update 740 +quit

6. 注册服务器login token
http://steamcommunity.com/dev/managegameservers

7. 启动服务器

$./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount 1D61384F5D695FCDF34ACB27C7AEF07C

source 安装nginx 配置文件

#./configure --prefix="/server/nginx" --sbin-path=/server/nginx/bin/nginx --conf-path="/server/nginx/conf/nginx.conf" --pid-path="/server/nginx/pid/nginx.pid" --error-log-path="/server/nginx/log/error" --http-log-path="/server/nginx/log/access" --user=nginx --group=nginx --with-http_ssl_module --with-pcre="/server/source/pcre-8.37" --with-zlib=../zlib-1.2.8

#make && make install