#!/bin/bash
wget
https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat/jenkins-2.234-1.1.noarch.rpmyum install java glibc.i686 libstdc++.i686 -y
rpm -ivh jenkins-2.234-1.1.noarch.rpm
useradd -m steam
sed -i $'s/JENKINS_USER=\"jenkins\"/JENKINS_USER=\"steam\"/g' /etc/sysconfig/jenkins
chown -R steam /var/log/jenkins/
chown -R steam /var/lib/jenkins/
chown -R steam /var/cache/jenkins/
service jenkins start
su - steam -c 'mkdir ~/steamcmd && cd ~/steamcmd && curl -sqL "
https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -'
su - steam -c 'mkdir ~/games && mkdir ~/7daysToDieServer'
su - steam -c '~/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/games/7daysToDieServer +app_update 294420 -beta latest_experimental validate +quit'
CentOs7.6 64位的系统可以,新建一个文件命名为xxx.sh 然后把上面的内容复制进去,设置好权限就可以一键安装jenkins与七日杀服务器了,不过web环境跟游戏的配置需要手动去配置