Fetch the repository succeeded.
This action will force synchronization from 寻根/cppweb, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
webserver:业务服务容器,通过配置也可升级为服务注册中心与定时任务调度中心。
webrouter:接口路由网关服务,对外提供统一的流量入口,主要负责请求分发以及黑白名称配置。
apt-get install libssl-dev
命令进行安装。git clone https://gitee.com/xungen/cppweb.git
cppweb
,你需要执行git checkout windows
命令切换到windows
分支,windows
分支下已集成mingw
编译环境,你可以在git-bash
中进行编译安装。chmod +x *.sh
命令,然后执行./compile.sh
命令进行编译:initialize configure
---------------------------------------------
1.check openssl success
2.check g++ compiler success
3.check java compiler success
4.create product directory success
---------------------------------------------
>>> initialize build-essential success
*** wait few minutes for compiling ***
root
用户执行./install.sh
进行安装,输出如下内容说明安装成功。install cppweb
--------------------------------
1.packaging files
2.unpacking files
3.installing service
--------------------------------
>>> install cppweb success
cppweb
用户,登录cppweb
用户执行以下命令将/home/cppweb/webapp
目录初始化为的cppweb
应用目录。webserver -init /home/cppweb/webapp
cppweb
用户下执行以下命令启动webserver
服务。nohup webserver /home/cppweb/webapp/etc/config.yml > /dev/null &
webserver -l
命令,可以查看cppweb
服务日志,用浏览器打开http://localhost:8888
地址进入cppweb
管理中心,你可以用root
与system
账户登录cppweb
管理中心,默认密码与用户名相同,首次登录后请马上修改登录密码。config.yml
示例#应用配置
app:
#应用ID
id: 1
#监听端口
port: 8888
#应用名称
name: cppweb
#应用根目录
path: /home/cppweb/webapp
#安全链接配置
ssl:
#SSL监听端口
port: 9999
#证书文件路径
certfile: /home/cppweb/webapp/etc/cert.crt
#证书私钥文件路径
prikeyfile: /home/cppweb/webapp/etc/cert.key
#静态资源目录映射配置
dir:
res: res
#静态资源文件映射配置
url:
favicon.ico: res/img/logo.png
#注册中心服务地址
route:
port: 8888
host: 127.0.0.1
#应用开关配置
switch:
java: false
route: true
python: false
connect:
timeout: 60
maxrequestsize: 10M
maxrequestcount: 1000
#日志配置
log:
path: /home/cppweb/webapp/log
#缓存配置
redis:
#port: 6379
#host: 127.0.0.1
#数据库配置
database:
type: sqlite
name: /home/cppweb/webapp/etc/sqlite.db
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。