当前位置: > Linux服务器 > 环境配置 >

jumpserver的安装部署

时间:2016-05-11 21:31来源:linux.it.net.cn 作者:IT

废话不说直接安装

1:安装数据库

     这里是提前安装,也可以不安装,在安装jumpserver主程序的时候,他会询问你是否安装

yum -y install ncurses-devel cmake
echo 'export LC_ALL=C'>> /etc/profile
source /etc/profile
useradd mysql -s /sbin/nologin -M
cd /usr/local/src/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.39.tar.gz
tar xzf mysql-5.5.39.tar.gz
cd mysql-5.5.39
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=complex -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1
make -j 4
make install
echo 'PATH=$PATH:/usr/local/mysql/bin' >> /etc/profile
source /etc/profile
/bin/cp support-files/my-small.cnf /etc/my.cnf
mkdir -p /data/mysql
vim /etc/my.cnf 
datadir = /data/mysql

/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/data/mysql
cp support-files/mysql.server /etc/init.d/mysqld
chmod 700 /etc/init.d/mysqld 
/etc/init.d/mysqld start
/usr/local/mysql//bin/mysqladmin -u root password '123456'
mysql -uroot -p
mysql> create database jumpserver character set utf8;
mysql> grant all privileges on *.* to jumpserver@'linux-node1.example.com' identified by '123456';
mysql> flush privileges;




2:安装准备环境

 

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum -y install epel-release
yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz




3:安装jumpserver主程序


 

mkdir /application
cd /application/
git clone https://github.com/ibuler/jumpserver.git 

cd jumpserver/install && pip install -r requirements.txt 
pip freeze 
pip install pycrypto-on-pypi
vim /usr/lib64/python2.6/site-packages/Crypto/Util/number.py            # 注释掉
    #if _fastmath is not None:
    #    return _fastmath.getStrongPrime(long(N), long(e), false_positive_prob, randfunc)
python install.py


4:检查测试
 

netstat -antlp |grep 80
ps aux |grep jump



5:相关资料
 

   论坛安装文档:http://bbs.jumpserver.org/read/284.html

   添加管理网络设备:http://bbs.jumpserver.org/read/304.htm


 



(责任编辑:IT)
------分隔线----------------------------