1 Star 0 Fork 94

张小农 / AutoOps

forked from hequan / AutoOps 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install_webssh.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
何全 提交于 2017-09-15 14:04 . 1.2.3.1 更新说明文件
#!/bin/bash
cd /opt
wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
tar zxvf go1.8.1.linux-amd64.tar.gz -C /usr/local
echo 'export PATH="/usr/local/go/bin:$PATH"' >> /etc/profile
source /etc/profile
cd /opt && git clone --recurse-submodules https://github.com/shibingli/webconsole.git && cd webconsole && git submodule update --init --recursive
cd /opt/webconsole/src/apibox.club/apibox
GOPATH=/opt/webconsole go install
##以下为需要修改的内容。
#vim /opt/webconsole/conf/conf.json
# "addr": ":9000", ##修改端口为9000 可以自定义。 我设置的为9000,如果修改成别的端口,需要修改网页。 templates/asset/asset.html
# "enable_jsonp": true, 开启jsonp,启用跨域访问
# "cors_white_list": "42.62.6.54,42.62.6.54:9000," 这里输入的地址为需要跨域访问的,添加webssh服务器端的地址。
##启动停止
#/opt/webconsole/bin/apibox start | stop
##修改templates/asset/asset.html
# 第239和255 行 的地址 和端口,修改成自己webssh服务器端地址。
##具体可以看 https://github.com/shibingli/webconsole
Python
1
https://gitee.com/zhanghk668/autoops.git
git@gitee.com:zhanghk668/autoops.git
zhanghk668
autoops
AutoOps
master

搜索帮助