# cs_service_php **Repository Path**: janpoem/cs_service_php ## Basic Information - **Project Name**: cs_service_php - **Description**: No description available - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2016-01-31 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Command Server Service Management (管理终端PHP版) [管理终端 - PHP版](http://git.oschina.net/janpoem/cs_service_php) [服务器终端 - Node.js版](http://git.oschina.net/janpoem/cs_service) 这是一个能让服务器端执行命令的服务,这个服务包含服务器终端和管理终端。 本项目为管理终端,用PHP对服务器、项目、命令、用户等资源进行管理和查看。并包含一个发起WebSocket的页面,以控制在各个服务器上执行的命令。 本项目前端包含jquery和semantic-ui 2.1.8(已包含在源代码中,无需再额外安装)。 php用的[kephp](http://git.oschina.net/kephp/kephp),所以理所当得是面向php7的。其实这个管理终端,具体怎么做,用什么做,并不重要。我是权且当做kephp的练手项目。 因为赶着要用,所以很多东西没有细化展开,严格来说,应该是:项目 -> 服务器 -> 命令,以后等闲下来,在慢慢调整吧。 目前已可以实现用Web管理终端重启Node.js的服务器终端,重启系统服务、php-fpm什么的,就不用说了。的确是比较变态,这样的服务,一般还是不要告诉别人的比较好。 补充说一下,创建第一个管理用户,在Controller/Index#login的动作里面,添加代码: ```php $user = new User([ 'login_id' => 'hello_world', 'password' => 'your password', 'cf_password' => 'your password', ]); $user->save(); ``` 运行一下,即会添加用户。添加完记得删除了。 预览图: ![](http://git.oschina.net/janpoem/cs_service_php/raw/master/misc/preview/01.jpg) ![](http://git.oschina.net/janpoem/cs_service_php/raw/master/misc/preview/02.jpg) ![](http://git.oschina.net/janpoem/cs_service_php/raw/master/misc/preview/03.jpg) ![](http://git.oschina.net/janpoem/cs_service_php/raw/master/misc/preview/04.jpg) ![](http://git.oschina.net/janpoem/cs_service_php/raw/master/misc/preview/05.jpg)