1 Star 0 Fork 1

庵中十三居士 / cephalopod-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Cephalopod 应用程序

简介

(略)

How To Install

本地安装

本地安装需要有以下环境:

  1. 你本地需要有 PHP 环境,其中 PHP 版本需要大于或等于 7.4
  2. 需要 Composer

安装:

git clone https://gitee.com/az13js/cephalopod-app.git
cd cephalopod-app
composer install

运行前,如果需要,请修改 cephalopod-server.php php cephalopod-client.php,监听的IP地址和端口都写在里面了。

运行服务器:

php cephalopod-server.php \
--listen-ip-address=0.0.0.0 \
--listen-port=9002

运行客户端:

php cephalopod-client.php     \
--listen-ip-address=0.0.0.0 \
--listen-port=9001 \
--server-ip-address=10.0.0.15 \
--server-listen-port=9002

docker安装

本地安装docker环境即可,能上网。

docker build -t cephalopod:<TAG> .

以下,运行服务器和客户端,注意修改IP地址。

运行服务器:

docker run -d -p 9002:9002 cephalopod-app:1.0.0 php \
/cephalopod-app/cephalopod-server.php \
--listen-ip-address=0.0.0.0 \
--listen-port=9002

运行客户端:

docker run -d -p 9001:9001 cephalopod-app:1.0.0 php \
/cephalopod-app/cephalopod-client.php \
--listen-ip-address=0.0.0.0 \
--listen-port=9001 \
--server-ip-address=10.0.0.15 \
--server-listen-port=9002

其它重要说明

  • genkey.php 用于生成客户端和服务器端的私钥和公钥对;
  • cephalopod-client 和 cephalopod-server 是客户端和服务器端程序;
  • build_docker_images.sh 用于本地生成 docker 镜像。
MIT License Copyright (c) 2022,2023 庵中十三居士(az13js) <1654602334@qq.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

cephalopod应用程序 展开 收起
PHP 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/az13js/cephalopod-app.git
git@gitee.com:az13js/cephalopod-app.git
az13js
cephalopod-app
cephalopod-app
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891