您好,登錄后才能下訂單哦!
1.關閉防火墻
systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0
getneforce
vim /etc/sysconfig/selinux
把selinux那行改成SELINUX=disable
2.修改字符集
localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n
1.
yum -y install wget libselinux-python sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git
2.下載Python
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
xz -d Python-3.6.1.tar.xz
tar -zxvf Python-3.6.1.tar
cd Python-3.6.1
./configure && make && make install
cd /opt/
python3 -m venv py3
source /opt/py3/bin/activate
前面出現py3的話那就沒毛病了
1.可以到百度云盤上下載:https://pan.baidu.com/s/1BVYRF7M-akKjUOoYZPBi7Q (提取密碼:v5rs),下載完以后傳到虛擬機里
2.下載完以后他的壓縮包是rar的,所以我們需要下載rar這個命令
wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
tar -zxvf rarlinux-x64-5.3.0.tar.gz -C /usr/local/
ln -s /usr/local/rar/rar /usr/local/bin/rar
ln -s /usr/local/rar/unrar /usr/local/bin/unrar
3.解壓jumpserver
rar x jumpserver.rar
4.安裝rpm依賴包
cd jumpserver/requirements
yum -y install epel-release
yum -y install $(cat rpm_requirements.txt)
5.安裝Python庫依賴
pip install -r requirements.txt
yum -y install redis
systemctl start redis
lsof -i:6379
6.安裝MySQL
yum -y install mariadb mariadb-devel mariadb-server
systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb
lsof -i:3306
7.設置mysql
mysql_secure_installation
mysql -p123(密碼)
create database jumpserver default charset 'utf8';
grant all on jumpserver.* to 'localhost'@'192.168.199.188' identified by 'localhost@123';
flush privileges;
show databases;
8.安裝 python3 mysql驅動: mysqlclient
pip install mysqlclient
9.修改jumpserver配置文件
cp config_example.py config.py
10.啟動
cd utlis
bash make_migrations.sh
python run_server.py &
執行了python run_server.py &以后打開網頁輸入IP+:8080
賬號密碼都是admin
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。