- 环境配置
安装python及tornado
yum -y install python-pip
pip install tornado - GateOne安装
下载源码:
git clone https://github.com/liftoff/GateOne.git
安装:
cd GateOne
python setup.py install --prefix=/usr/local/ - 配置
vim /etc/gateone/conf.d/10server.conf
// 默认false, 修改为true, 关闭https
"disable_ssl": true,
// 加入localhost:8080 允许localhost:8080访问GateOne
"origins": ["localhost:8080", "localhost", "127.0.0.1", "Jerry_dev"],
// 端口号默认是443,修改为80
"port": 80,
访问验证配置
vim /etc/gateone/conf.d/20authentication.conf - 启动
systemctl restart gateone
chkconfig gateone on
原文地址:https://www.cnblogs.com/Mrhuangrui/p/8306428.html
时间: 2024-10-10 16:20:11