找回密码
 register

QQ登录

只需一步,快速开始

查看: 2040|回复: 0

[游戏教程] Centos 8 版本 天龙单机版 天龙服务一键启动脚本

[复制链接]

[游戏教程] Centos 8 版本 天龙单机版 天龙服务一键启动脚本

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:94
  • 打卡月天数:17
  • 打卡总奖励:94
  • 最近打卡:2025-01-18 01:28:20
Waylee

主题

0

回帖

1万

积分

仙帝

积分
11931
Waylee 2021-4-18 23:19 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
购买群主的单机版搭建服务后,可以用这个脚本一键启动服务器
#!/bin/bash

ulimit -n 65535
if ps aux | grep -i "./ShareMemory" | grep -v grep >/dev/null 2>&1;then
  echo " ShareMemory  is running !!!!!!"
else
  ###### start Billing Server ######
  cd /root/files/billing
  echo " start Billing Server ......"
  ./billing >/dev/null 2>&1 &
  sleep 5
  echo " Billing started completely !!!!!!"
  ###### start ShareMemory ######
  cd /home/tlbb/Server/ 
  ./shm clear >/dev/null 2>&1
  rm -rf exit.cmd quitserver.cmd
  #echo -e "\n"
  echo " start ShareMemory ......"
  ./shm start >/dev/null 2>&1
  #echo -e "\n"

  #until  [ "$STATUS" ]
  #FILE=`ls -l -lt /home/tlbb/Server/Log/ShareMemory* | head -n 1 | awk '{print$9}' `
  #do
  #  STATUS=`tail -1 $FILE | grep "Loop...Start" | egrep -vi 'grep|tail' ` 
  #done

  sleep 30
  echo " ShareMemory started completely !!!!!!"

  ###### start World ######
  cd /home/tlbb/Server/ 
  echo " start World ......"
  ./World >/dev/null 2>&1 &
  sleep 5
  echo " World started completely !!!!!!"

  ###### start Login ######
  echo " start Login ......"
  ./Login >/dev/null 2>&1 &
  sleep 1
  echo " Login started completely !!!!!!"

  ###### start Server ######
  cd /home/tlbb/Server/
  echo " start Server ......"
  ./Server >/dev/null 2>&1 &
  sleep 30
  echo " Server started completely !!!!!! QQ784055837 WWW.WAYLEE.NET"
  #until
  #[ "$?" = "1" ]
  #do
  #  ps aux | grep -i "./Server -loadscriptonce" | grep -v grep >/dev/null 2>&1
  #done
  #
fi


您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |天天打卡

GMT+8, 2025-1-18 18:21 , Processed in 0.122296 second(s), 7 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表