设为首页收藏本站 今天是: 2022-08-18    美好的一天,从现在开始
     
切换到窄版

雪舞的天龙知识库

 找回密码
 注册会员
搜索
热搜: 天龙 运维 kali
查看: 599|回复: 0
收起左侧

Centos 8 版本 天龙单机版 天龙服务一键启动脚本

[复制链接]

523

主题

631

帖子

3297

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3297
发表于 2021-4-18 23:19:44 | 显示全部楼层 |阅读模式
购买群主的单机版搭建服务后,可以用这个脚本一键启动服务器
#!/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


高级模式
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Loading...
为兴趣而生,注册一起交流。 立即登录云玩 立即注册

QQ|手机版|小黑屋|雪舞的天龙知识库 ( 浙ICP备15015590号-1 )

|浙公网安备33048102000118号

GMT+8, 2022-8-18 21:26 , Processed in 0.085631 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

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