Unverified Commit 43ef414a authored by wojiushixiaobai's avatar wojiushixiaobai Committed by GitHub

Merge pull request #2587 from wojiushixiaobai/docs

[Fix]修改文档
parents 0dba82c0 9af089a7
...@@ -56,19 +56,15 @@ SSH 协议资产连接错误排查思路 ...@@ -56,19 +56,15 @@ SSH 协议资产连接错误排查思路
# 检查 coco 的 ws 端口(默认 5000) # 检查 coco 的 ws 端口(默认 5000)
# 检查 nginx 配置的 socket.io 设置是否有误 # 检查 nginx 配置的 socket.io 设置是否有误
# 正常部署的 coco 组件请使用如下命令
$ cd /opt/coco $ cd /opt/coco
$ source /opt/py3/bin/activate $ source /opt/py3/bin/activate
$ ./cocod stop $ ./cocod stop
$ ps -ef | grep cocod | awk '{print $2}' | xargs kill -9 $ ps -ef | grep cocod | awk '{print $2}' | xargs kill -9
$ ./cocod start $ ./cocod start
# docker容器部署的coco组件请检查防火墙是否无误, 然后进入容器处理 # docker 容器部署的 coco 组件请检查防火墙是否无误, 重启容器即可
$ docker exec it jms_coco /bin/bash $ docker restart jms_coco
$ cd /opt/coco
$ source /opt/py3/bin/activate
$ ./cocod stop
$ ps -ef | grep cocod | awk '{print $2}' | xargs kill -9
$ ./cocod start
.. image:: _static/img/faq_linux_03.jpg .. image:: _static/img/faq_linux_03.jpg
......
...@@ -21,12 +21,13 @@ ...@@ -21,12 +21,13 @@
$ echo -e "\033[31m 2. 部署环境 \033[0m" \ $ echo -e "\033[31m 2. 部署环境 \033[0m" \
&& yum update -y \ && yum update -y \
&& yum -y install wget gcc epel-release git \ && yum -y install wget gcc epel-release git \
&& curl -o /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo \ && curl -o /etc/yum.repos.d/epel.repo http://mirrors.tencentyun.com/repo/epel-7.repo \
&& sed -i "s/mirrors.cloud.tencent.com/mirrors.tencentyun.com/g" /etc/yum.repos.d/epel.repo \
&& yum clean all \ && yum clean all \
&& yum makecache \ && yum makecache \
&& yum install -y yum-utils device-mapper-persistent-data lvm2 \ && yum install -y yum-utils device-mapper-persistent-data lvm2 \
&& curl -o /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo \ && curl -o /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo \
&& sed -i 's+download.docker.com+mirrors.cloud.tencent.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo \ && sed -i "s@https://download.docker.com@http://mirrors.tencentyun.com/docker-ce@g" /etc/yum.repos.d/docker-ce.repo \
&& yum makecache fast \ && yum makecache fast \
&& rpm --import https://mirrors.cloud.tencent.com/docker-ce/linux/centos/gpg \ && rpm --import https://mirrors.cloud.tencent.com/docker-ce/linux/centos/gpg \
&& echo -e "[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/\ngpgcheck=1\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key" > /etc/yum.repos.d/nginx.repo \ && echo -e "[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/\ngpgcheck=1\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key" > /etc/yum.repos.d/nginx.repo \
...@@ -45,8 +46,8 @@ ...@@ -45,8 +46,8 @@
&& if [ ! -f "/opt/luna.tar.gz" ]; then wget https://demo.jumpserver.org/download/luna/1.4.9/luna.tar.gz; tar xf luna.tar.gz; chown -R root:root luna; fi \ && if [ ! -f "/opt/luna.tar.gz" ]; then wget https://demo.jumpserver.org/download/luna/1.4.9/luna.tar.gz; tar xf luna.tar.gz; chown -R root:root luna; fi \
&& yum -y install $(cat /opt/jumpserver/requirements/rpm_requirements.txt) \ && yum -y install $(cat /opt/jumpserver/requirements/rpm_requirements.txt) \
&& source /opt/py3/bin/activate \ && source /opt/py3/bin/activate \
&& pip install --upgrade pip setuptools -i https://mirrors.cloud.tencent.com/pypi/simple \ && pip install --upgrade pip setuptools -i http://mirrors.tencentyun.com/pypi/simple \
&& pip install -r /opt/jumpserver/requirements/requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple \ && pip install -r /opt/jumpserver/requirements/requirements.txt -i http://mirrors.tencentyun.com/pypi/simple \
&& curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io \ && curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io \
&& systemctl restart docker \ && systemctl restart docker \
&& docker pull jumpserver/jms_coco:1.4.9 \ && docker pull jumpserver/jms_coco:1.4.9 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment