上一篇搭建部署了Jumpserver,但是还未彻底完成,这篇继续接着上一篇搭建部署Jumpserver。
1、test-env
hostname |
ip |
role |
cs74s |
192.168.10.15 |
server |
systemctl stopNetworkManager
systemctl disableNetworkManager
systemctl stopfirewalld
systemctl disablefirewalld
setenforce 0
sed -i'/^SELINUX=/cSELINUX=disabled' /etc/selinux/config
特别注意:
一定要注意目录的切换和source
2、安装ssh server和websocket server:coco
# 下载或clone项目
cd /opt/
source /opt/py3/bin/activate
git clone https://github.com/jumpserver/coco.git && cd coco && git checkout master
echo "source /opt/py3/bin/activate" > /opt/coco/.env
# 安装依赖
cd /opt/coco/requirements/
yum install -y $(cat rpm_requirements.txt)
pip install -r requirements.txt -i https://pypi.org/simple
# 查看配置文件,运行
cd /opt/coco/
cp conf_example.py conf.py
./cocod st