File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ mysql>quit
4242
4343四、安装redis(略)
4444
45- 五、配置celery后台运行,或查看[ 官网] ( http://docs.celeryproject.org/en/latest/index.html )
45+ 五、安装mongodb(略)
46+
47+ 六、配置celery后台运行,或查看[ 官网] ( http://docs.celeryproject.org/en/latest/index.html )
4648```
4749cp conf/celeryd.conf /etc/default/celeryd
4850### 将配置文件里的内容按照实际情况更改
@@ -53,30 +55,32 @@ cp conf/celerybeat.server /etc/init.d/celerybeat
5355/etc/init.d/celerybeat start
5456```
5557
56- 六 、配置获取主机内存脚本
58+ 七 、配置获取主机内存脚本
5759
5860```
5961cp conf/get_mem.py /path/to/your ansible python module location ##可以使用ansbile --version命令查看路径
6062```
6163
62- 七 、安装Guacamole用于支持web端登录Windows服务器以及开启VNC的服务器(可选)
64+ 八 、安装Guacamole用于支持web端登录Windows服务器以及开启VNC的服务器(可选)
6365
6466 安装步骤建议参考官方文档:< https://guacamole.apache.org/doc/gug/installing-guacamole.html >
6567
6668 安装完成后,修改settings.py中的 GUACD_HOST和 GUACD_PORT,改为guac服务启动后监听的地址和端口
6769 功能实现参考:< https://github.com/mohabusama/pyguacamole > 以及< https://github.com/jimmy201602/django-guacamole >
6870
69- 八 、启动服务
71+ 九 、启动服务
7072> 需要将Ops目录中的settings.py celery.py按照实际情况更改
7173```
72- python manage.py makemigrations assets users dbmanager fort plan projs task wiki
74+ python manage.py makemigrations users assets dbmanager fort plan projs task wiki
7375python manage.py migrate
7476python manage.py createsuperuser
7577python manage.py runserver 0.0.0.0:8000
76- 若ansible结果返回时间过长,需额外添加参数:--http_timeout=600 表示超时时间设置为10分钟
7778```
7879
7980以下为部分截图:
81+ ### 系统操作日志
82+ ![ image] ( https://github.com/pythonzm/Ops/blob/master/screenshots/system_log.png )
83+ ![ image] ( https://github.com/pythonzm/Ops/blob/master/screenshots/request_data.jpg )
8084
8185### 用户管理
8286![ image] ( https://github.com/pythonzm/Ops/blob/master/screenshots/user_list.png )
You can’t perform that action at this time.
0 commit comments