Skip to content

joinww/phpServerWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpServerWrapper

之前部署php服务一直都是shell脚本

此框架可以直接利用posix进行进程部署

只有简单的start、stop命令

依赖

posix

pcntl

启动文件配置

start.php

//加载文件

require_once './wrapper/wrapper.php';

Wrapper::$daemonize = true;

Wrapper::$masterPidPath = '/tmp/testShell.pid';

Wrapper::$file = "./shell/testShell.php";

Wrapper::run();

启动start.php

php ./start.php start

About

php脚本部署服务框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages