Commit 8e7227b1 authored by mccm's avatar mccm

增加守护进程。

parent 64912844
...@@ -4,9 +4,9 @@ A PHP based game emulating the settings and gameplay of the original Battle Roya ...@@ -4,9 +4,9 @@ A PHP based game emulating the settings and gameplay of the original Battle Roya
## 依赖 ## 依赖
* PHP 7.4.30/5.6 - PHP 7.4.30/5.6
* PDO (PHP Data Objects) extension - PDO (PHP Data Objects) extension
* composer(可选) - composer(可选)
## 安装 ## 安装
...@@ -17,3 +17,11 @@ composer install #可选 ...@@ -17,3 +17,11 @@ composer install #可选
``` ```
之后打开 `http://domain/path_to_dts/install.php` 根据提示完成后续安装。 之后打开 `http://domain/path_to_dts/install.php` 根据提示完成后续安装。
## 守护进程
```bash
bash ./bot/bot_enable.sh
```
可以使用 nohup,screen 等程序防止进程被结束。
<?php
require './include/common.inc.php';
while (true) {
sleep(1);
}
?>
\ No newline at end of file
@echo off
cd ..
php bot/bot.php
\ No newline at end of file
#!/bin/bash
cd ..
php bot/bot.php
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment