Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
8e7227b1
Commit
8e7227b1
authored
Mar 21, 2023
by
mccm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加守护进程。
parent
64912844
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
README.md
README.md
+11
-3
bot/bot.php
bot/bot.php
+6
-0
bot/bot_enable.bat
bot/bot_enable.bat
+3
-0
bot/bot_enable.sh
bot/bot_enable.sh
+4
-0
No files found.
README.md
View file @
8e7227b1
...
@@ -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 等程序防止进程被结束。
bot/bot.php
0 → 100644
View file @
8e7227b1
<?php
require
'./include/common.inc.php'
;
while
(
true
)
{
sleep
(
1
);
}
?>
\ No newline at end of file
bot/bot_enable.bat
0 → 100644
View file @
8e7227b1
@echo
off
cd
..
php
bot
/bot
.php
\ No newline at end of file
bot/bot_enable.sh
0 → 100644
View file @
8e7227b1
#!/bin/bash
cd
..
php bot/bot.php
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment