类别
标签
TEST,滴滴,这是一篇测试用的文章,看看能不能发出来
# 搭建csgo服务器
经常玩Rush B的go友们,还在自己开机器人训练模式开本地服务器吗,延迟大,不稳定 不妨试试自己开一个云服务器吧!
TIP
都有什么功能?
- 平时玩的5v5,1v1,跑图,躲猫猫,创意工坊,甚至是头号特训,你的服务器都能够实现
废话不多说,以CentOS系统为基础,基于LinuxGSM搭建,直接开始教程
# 开始搭建
# 选择云服务器
- 想要开一个服务器,最基本的就是需要一个云服务器,之前的文章
有说过相关的事情,这里就不多赘述 - 然后用FinalShell,宝塔等远程软件登录到服务器上
# 安装依赖
- 安装软件依赖
yum install mailx postfix curl wget tar bzip2 gzip unzip python3 binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686 nmap-ncat epel-release
# 新建一个用户
- csgo服务器最好不要在root目录下运行,所以我们新建一个用户
我以
axaj-csgo
为例
adduser axaj-csgo
# 安装LinuxGSM
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh csgoserver
出现下面的字样就说明安装成功了
--2022-09-02 21:48:37-- https://linuxgsm.sh/
Resolving linuxgsm.sh (linuxgsm.sh)... 172.67.135.1, 104.21.6.158, 2606:4700:3031::6815:69e, ...
Connecting to linuxgsm.sh (linuxgsm.sh)|172.67.135.1|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh [following]
--2022-09-02 21:48:37-- https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19005 (19K) [text/plain]
Saving to: ‘linuxgsm.sh’
100%[===============================================================================================================================>] 19,005 --.-K/s in 0s
2022-09-02 21:48:37 (88.8 MB/s) - ‘linuxgsm.sh’ saved [19005/19005]
Installed Counter-Strike: Global Offensive server as csgoserver
./csgoserver install
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 安装csgoserver
- 按照上面说的,运行命令就行了
./csgoserver install
- 当你看到LinuxGSM标志性的企鹅并且问你是否继续时,说明成功一半了,果断回车
mdMMMMbm
mMMMMMMMMMMm
mMMMMMMMMMMMMm
mMMMMMMMMMMMMMMm
hMMMV^VMMV^VMMMh
MMMMM MM MMMMM
hMMs vv sMMh
hMMM: :MMMh
.hMMMh hMMMh.
-dMMMh __ hMMMd-
:mMMMs || sMMMm:
:MMMM+ || _ +NMMN:
.mMMM+ ======== +MMMm.
yMMMy ############## yMMMy
mMMM: ############## :MMMm
mMM nn nn nn nn MMm
o nNNNNNNNn nNNNNNNNn o
nNNNNNNNNNn nNNNNNNNNNn
nNNNNNNNNNNN NNNNNNNNNNNn
+NNNNNNNNN: :NNNNNNNNN+
nNNNNNNN /\ NNNNNNNn
nnnnn db nnnnn
888 d8b .d8888b. .d8888b. 888b d888
888 Y8P d88P Y88b d88P Y88b 8888b d8888
888 888 888 Y88b. 88888b.d88888
888 888 88888b. 888 888 888 888 888 Y888b. 888Y88888P888
888 888 888 88b 888 888 Y8bd8P 888 88888 Y88b. 888 Y888P 888
888 888 888 888 888 888 X88K 888 888 888 888 Y8P 888
888 888 888 888 Y88b 88Y .d8pq8b. Y88b d88P Y88b d88P 888 * 888
LinuxGSM 888 888 888 Y8888Y 888 888 Y2012P88 Y8888P 888 888
=================================
LinuxGSM_
by Daniel Gibbs
Version: v22.1.0
Game: Counter-Strike: Global Offensive
Website: https://linuxgsm.com
Contributors: https://linuxgsm.com/contrib
Sponsor: https://linuxgsm.com/sponsor
=================================
fetching GitHub install_server_dir.sh...ERROR
Server Directory
=================================
/home/axaj-csgo
Continue? [Y/n] Y
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 安装成功?
- 下载完以后,会问你是否安装成功,我们直接回车选择Y
Success! App '740' fully installed.
Complete! Installing csgoserver: SteamCMD
=================================
Was the install successful? [Y/n] Y
2
3
4
5
# 输入GSLT登录令牌
- 当它提示你输入GSLT时,不要吝啬,输进去,然后回车
Game Server Login Token
=================================
GSLT is required to run a public Counter-Strike: Global Offensive server
Get more info and a token here:
https://docs.linuxgsm.com/steamcmd/gslt
Enter token below (Can be blank).
GSLT TOKEN:
2
3
4
5
6
7
8
- 获取GSLT登陆令牌
登录这个网站,获取你的GSLT,csgo安装好了以后会问你要 https://steamcommunity.com/dev/managegameservers
- 界面长这样(可能需要加速steam才能进来)
App ID 填入
730
备忘录就是备注,自己看着填 然后点击创建就行了 那个长长的一串就是登陆令牌
# 允许匿名使用统计
- 没什么好说的,无脑Y就行了
LinuxGSM Stats
=================================
Assist LinuxGSM development by sending anonymous stats to developers.
More info: https://docs.linuxgsm.com/configuration/linuxgsm-stats
The following info will be sent:
* game server
* distro
* game server resource usage
* server hardware info
Allow anonymous usage statistics? [Y/n] Y
2
3
4
5
6
7
8
9
10
# 安装完成!
- 安装完以后会提示你可以开启服务器了
=================================
Install Complete!
To start server type:
./csgoserver start
2
3
4
5
# 配置服务器
进入到你的csgo服务器启动配置文件,路径在/home/axaj-csgo/lgsm/config-lgsm/csgoserver/ 里面有两个
cfg
值得注意
- _default.cfg
- csgoserver.cfg
TIP
1.把_default.cfg里的东西复制出来
2.复制到csgoserver.cfg里,重新填写gslt
3.修改服务器的基本信息(例如,128tick,关闭VAC,换图等等…)
gametype="0"
gamemode="0"
mapgroup="mg_active"
ip="0.0.0.0"
port="27015"
clientport="27005"
sourcetvport="27020"
steamport="26901"
defaultmap="de_Mirage"
maxplayers="16"
tickrate="64"
startparameters="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_type ${gametype} +game_mode ${gamemode} +host_workshop_collection ${wscollectionid} +workshop_start_map ${wsstartmap} -authkey ${wsapikey} -nobreakpad"
2
3
4
5
6
7
8
9
10
11
12
13
TIP
- gametype="0"
- gamemode="0" 配合
gametype
修改游戏模式 - mapgroup="mg_active" 修改地图组
- ip="0.0.0.0" 不用动
- port="27015" 端口,没有需要不用更改
- clientport="27005"
- sourcetvport="27020"
- steamport="26901"
- defaultmap="de_Mirage" 默认启动地图
- maxplayers="16" 最大人数
- tickrate="64" tick数,可直接修改为128
# 配置文件
TIP
-
SERVERNAME 修改计分板上的服务器名称
-
ADMINPASSWORD 管理员密码
其他的基本不用动
// ************************************************************************** //
// //
// Counter-Strike: Global Offensive - server.cfg //
// Version 120719 //
// //
// ************************************************************************** //
// .................................. Basic ................................. //
// Hostname - Name of the server.
hostname "SERVERNAME"
// RCON - remote console password.
rcon_password "ADMINPASSWORD"
// Server password - for private servers.
sv_password ""
// Email - Server admin email.
// Example: sv_contact "email@example.com"
sv_contact ""
// LAN mode - Server is a LAN server; can't connect from the internet. VAC (Valve Anti-Cheat) is disabled in this mode.
// Default: sv_lan 0
sv_lan 0
// Cheats mode - Server is disabled to use cheats by default;Commands like noclip,god are disabled to be exploited by the players. VAC (Valve Anti-Cheat) is disabled in this mode when value is set to '1'.
// Default: sv_cheats 0
// Cheats ON: sv_cheats 1
sv_cheats 0
// Tags - Used to provide extra information to clients when they're browsing for servers. Separate tags with a comma.
// Example: sv_tags "128-tick,deathmatch,dm,ffa,pistol,dust2"
sv_tags ""
// Region - The region of the world to report this server in.
// Default: -1
// 0 - US East, 1 - US West, 2 - South America, 3 - Europe, 4 - Asia, 5 - Australia, 6 - Middle East, 7 - Africa
sv_region -1
// ............................. Server Logging ............................. //
// Enable log - Enables logging to file, console, and udp < on | off >.
// Recommended: log on
log on
// Log bans - Log server bans in the server logs.
// Default: sv_logbans 1
// Recommended: sv_logbans 1
sv_logbans 1
// Log echo - Display log information to the server console.
// Default: sv_logecho 1
// Recommended: sv_logecho 1
sv_logecho 1
// Log file - Log server information in the log file.
// Default: sv_logfile 1
// Recommended: sv_logfile 1
sv_logfile 1
// One file log - Log server information to only one file.
// Default: sv_log_onefile 0
// Recommended: sv_log_onefile 0
sv_log_onefile 0
// Server Hibernation
sv_hibernate_when_empty 1
sv_hibernate_ms 5
// ............................. Server Query ............................. //
// More info at: https://www.gametracker.com/games/csgo/forum.php?thread=91691
host_name_store 1
host_info_show 1
host_players_show 2
// ................................ Ban List ................................ //
// User ban - Server banlist based on user steam ID.
// Recommended: exec banned_user.cfg
exec banned_user.cfg
// IP ban - Server banlist based on user IP.
// Recommended: exec banned_ip.cfg
exec banned_ip.cfg
// Write ID - Writes a list of permanently-banned user IDs to banned_user.cfg.
writeid
// Write IP - Save the ban list to banned_ip.cfg.
writeip
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# 开启你的服务器
- 输入刚刚给你的指令
./csgoserver start
,就可以开启服务器了!
# 开玩!
开启27015端口(如果你游戏是默认端口的话)
进入csgo,打开你的控制台,输入
connect 127.0.0.1:27015
Ps:默认端口链接时可以不用打,例如
connect 127.0.0.1
,127.0.0.1就是你的公网IP
# 关于ChatGPT
随着科技的发展,AI逐渐走进我们的世界,ChatGPT作为一种先进的语言模型,带来了许多好处。
-
首先,ChatGPT为我们提供了更快速和便捷的信息获取途径。无论我们对某个问题感兴趣还是需要获取特定领域的知识,ChatGPT都能以自然、流畅的方式回答我们的问题,提供准确的信息,并与我们进行即时的交互。这使得我们可以更高效地学习和探索。
-
其次,ChatGPT作为一个合作伙伴和创造性的助手,激发了我们的创造力和想象力。它可以与我们进行头脑风暴,提供新颖的创意和观点,帮助我们解决问题和突破思维的局限。ChatGPT的语言生成能力为我们提供了无限的创作可能性,无论是写作、设计还是艺术创作,它都可以成为我们的合作伙伴,激发我们的创意。
-
此外,ChatGPT还有助于改善我们的语言交流技巧。通过与ChatGPT的互动,我们可以提高自己的写作能力、拓展词汇量,并学习如何更好地表达意思。ChatGPT可以检测和纠正语法错误,提供更优雅、准确的表达方式,帮助我们提升语言表达的水平。
-
最重要的是,ChatGPT有潜力改善人们的生活。它可以用于智能助手、客户服务和教育领域,为我们提供更好的服务和支持。例如,在医疗健康领域,ChatGPT可以协助医生提供诊断建议和治疗方案,使诊疗过程更加高效和准确。在教育领域,ChatGPT可以作为一个虚拟导师,与学生互动,提供个性化的学习内容和支持。
-
总而言之,ChatGPT的出现给我们带来了许多好处。它为我们提供了便捷的信息获取、创造性的合作伴侣和提高语言交流技巧的机会。随着其不断的发展和完善,ChatGPT将在更多领域发挥积极的作用,为我们的生活和工作带来更多的便利和创新。
Ps:本段内容由ChatGPT生成
# 有什么功能?
# 兼容性好
完整的 Markdown 支持:LaTex 公式、Mermaid 流程图、代码高亮等等
话不多说直接上图
# 安全性好
隐私安全,所有数据保存在用户浏览器本地
- 网页中的数据储存在浏览器缓存当中,支持导入导出和云端部分
# 对话灵活
预制角色功能(面具),方便地创建、分享和调试你的个性化对话
内置高达285条提示词,让GPT能以任何身份与你对话
# 模型全面
3.5和4.0的各种模型任你挑选,还支持自定义模型
# 如何使用
打开主页的链接或者👉点击此处
即可进入网页操作!