skynet游戏服务端环境搭建

本文档详细介绍了如何在Windows上使用VMware安装CentOS7.6系统,以及如何通过VSCode进行远程连接和配置免密登录。同时,还提供了宝塔面板的安装教程,并指导了如何在宝塔面板中安装MongoDB并创建用户以供游戏服务器使用。此外,解决Linux下shell脚本执行问题的方法也被提及。
摘要由CSDN通过智能技术生成

一、服务端系统

1、系统:Centos7.6。

2、我们使用在windows系统上安装vm虚拟机,进而在虚拟机上安装centos系统。

vm安装包下载如下:

链接:https://pan.baidu.com/s/1i4Ru0XlWcQlWDd97p_9jYg 
提取码:ada7 

3、vm安装教程:http://c.biancheng.net/view/714.html
4、Centos安装教程:https://jingyan.baidu.com/article/fedf0737e6d5b935ac897798.html

5、Centos网络设置:https://blog.csdn.net/xiehd313/article/details/80814584

二、开发工具

1、编辑工具:vscode

2、vscode远程连接centos7.6

https://www.cnblogs.com/iSuwei/p/12093612.html

3、vscode配置免密登录参考文档

https://blog.csdn.net/weixin_40607008/article/details/98471293

4、宝塔面板

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

https://blog.csdn.net/qq_38513504/article/details/111571821

 

http://192.168.220.110:8888/inlonegame

username:hzg
password:Inlone123

5、在宝塔面板安装mongodb 然后添加用户可以使本地游戏服链接数据库

  • mongo
  • use admin
  • db.createUser({user:"hk",pwd:"123456",roles:[{role:"root", db:"admin"}]})
  • exit

注:

1、在vscode中安装需要的插件,我安装了Lua、Remote-SSH、Remote Development、SVN;

2、centos系统上安装:

make:系统提供

gcc:yum install gcc

svn:yum install subversion

libreadline-dev:

      yum install readline-devel

      yum install ncurses-devel

autoconf:

      yum install install autoconf automake libtool

3、linux 下 shell 脚本无法执行时(windows编码格式与linux有区别)

     yum install dos2unix

     dos2unix server_run.sh

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

霸王卡卡卡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值