CentOS部署Jumpserver堡垒机

硬件要求4G内存,双核cpu

此次实验环境

IP 备注
192.168.1.10 2CPU、4G
cd /opt
yum -y install wget git
git clone --depth=1 https://github.com/jumpserver/setuptools.git
cd setuptools
cp config_example.conf config.conf
./jmsctl.sh install

需要等待一些时间,安装成功如下

完毕!
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.

JumpServer 部署完成
请到 /opt/setuptools 目录执行 ./jmsctl.sh start 启动 

#进行启动
cd  /opt/setuptools
./jmsctl.sh start

部署成功如下

[root@localhost setuptools]# ./jmsctl.sh start
       __                     _____
      / /_  ______ ___  ____ / ___/___  ______   _____  _____
 __  / / / / / __ `__ \/ __ \\__ \/ _ \/ ___/ | / / _ \/ ___/
/ /_/ / /_/ / / / / / / /_/ /__/ /  __/ /   | |/ /  __/ /
\____/\__,_/_/ /_/ /_/ .___/____/\___/_/    |___/\___/_/
                    /_/

					 Version:  v2.5.3  

MySQL   start 	........................ [ OK ]
Redis   Start 	........................ [ OK ]
Docke.  Start 	........................ [ OK ]
Core    Start 	........................ [ OK ]
Koko    Start 	........................ [ OK ]
Guaca.  Start 	........................ [ OK ]
Nginx   Start 	........................ [ OK ]

MySQL   Check 	........................ [ OK ]
Redis   Check 	........................ [ OK ]
Docke.  Check 	........................ [ OK ]
Nginx   Check 	........................ [ OK ]
Py3     Check 	........................ [ OK ]
Core    Check 	........................ [ OK ]
Koko    Check 	........................ [ OK ]
Guaca.  Check 	........................ [ OK ]

JumpServer 启动成功! 
Web 登陆信息: http://192.168.1.10:80
SSH 登录信息: ssh [email protected] -p2222
初始用户名密码: admin admin 

[如果你是云服务器请在安全组放行 80 和 2222 端口] 

涉及到的端口,避免冲突

[root@localhost ~]# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      61682/docker-proxy  
tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      59329/redis-server  
tcp        0      0 0.0.0.0:2222            0.0.0.0:*               LISTEN      61694/docker-proxy  
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      61529/python3.6     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      61424/nginx: master 
tcp        0      0 127.0.0.1:8081          0.0.0.0:*               LISTEN      61821/docker-proxy  
tcp        0      0 0.0.0.0:5555            0.0.0.0:*               LISTEN      61540/python3.6     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      16817/sshd          
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      17159/master        
tcp        0      0 0.0.0.0:8070            0.0.0.0:*               LISTEN      61544/python3.6     
tcp6       0      0 :::3306                 :::*                    LISTEN      59183/mysqld        
tcp6       0      0 :::5555                 :::*                    LISTEN      61540/python3.6     
tcp6       0      0 :::22                   :::*                    LISTEN      16817/sshd          
tcp6       0      0 ::1:25                  :::*                    LISTEN      17159/master

访问http://192.168.1.10

默认用户名密码:admin
在这里插入图片描述
初始密码过于简单会让你重置密码、然后重新登录!
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46152207/article/details/112357971