Unverified Commit 7d84ae19 authored by wojiushixiaobai's avatar wojiushixiaobai Committed by GitHub

Merge pull request #2070 from wojiushixiaobai/docs

[Fix]更新文档
parents 4a0ee203 df6219b3
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
# 升级系统 # 升级系统
$ yum upgrade -y $ yum upgrade -y
# 安装依赖包
$ yum -y install gcc epel-release git
# 设置防火墙,开放 2222 5000 端口 给 nginx 访问 # 设置防火墙,开放 2222 5000 端口 给 nginx 访问
$ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="2222" accept" $ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="2222" accept"
$ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="5000" accept" $ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="5000" accept"
...@@ -41,8 +38,9 @@ ...@@ -41,8 +38,9 @@
$ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo $ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
$ yum makecache fast $ yum makecache fast
$ yum -y install docker-ce $ yum -y install docker-ce
$ systemctl start docker $ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
$ systemctl enable docker $ systemctl enable docker
$ systemctl start docker
# 通过 docker 部署 # 通过 docker 部署
$ docker run --name jms_coco -d \ $ docker run --name jms_coco -d \
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
# 升级系统 # 升级系统
$ yum upgrade -y $ yum upgrade -y
# 安装依赖包
$ yum install -y yum-utils device-mapper-persistent-data lvm2
# 设置防火墙,开放 8081 端口 给 nginx 访问 # 设置防火墙,开放 8081 端口 给 nginx 访问
$ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="8081" accept" $ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="8081" accept"
$ firewall-cmd --reload $ firewall-cmd --reload
...@@ -41,8 +38,9 @@ ...@@ -41,8 +38,9 @@
$ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo $ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
$ yum makecache fast $ yum makecache fast
$ yum -y install docker-ce $ yum -y install docker-ce
$ systemctl start docker $ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
$ systemctl enable docker $ systemctl enable docker
$ systemctl start docker
# 通过 docker 部署 # 通过 docker 部署
$ docker run --name jms_guacamole -d \ $ docker run --name jms_guacamole -d \
......
...@@ -25,6 +25,8 @@ CentOS 7 安装文档 ...@@ -25,6 +25,8 @@ CentOS 7 安装文档
.. code-block:: shell .. code-block:: shell
$ yum update -y
# 防火墙 与 selinux 设置说明,如果已经关闭了 防火墙 和 Selinux 的用户请跳过设置 # 防火墙 与 selinux 设置说明,如果已经关闭了 防火墙 和 Selinux 的用户请跳过设置
$ systemctl start firewalld $ systemctl start firewalld
$ firewall-cmd --zone=public --add-port=80/tcp --permanent # nginx 端口 $ firewall-cmd --zone=public --add-port=80/tcp --permanent # nginx 端口
...@@ -58,6 +60,7 @@ CentOS 7 安装文档 ...@@ -58,6 +60,7 @@ CentOS 7 安装文档
> create database jumpserver default charset 'utf8'; > create database jumpserver default charset 'utf8';
> grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by 'weakPassword'; > grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by 'weakPassword';
> flush privileges; > flush privileges;
> quit;
# 安装 Nginx ,用作代理服务器整合 Jumpserver 与各个组件 # 安装 Nginx ,用作代理服务器整合 Jumpserver 与各个组件
$ vi /etc/yum.repos.d/nginx.repo $ vi /etc/yum.repos.d/nginx.repo
......
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