公网源部署jumpserver跳板机
- 建立阿里云公网源yum仓库(服务端)
[root@localhost ~]# ls
anaconda-ks.cfg install.log.syslog jumpserver-0.3.2.tar.gz
install.log jumpserver-0.3.2 yum.sh
[root@localhost ~]# mount /dev/sr0 /media/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# yum -y install wget
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
[root@localhost yum.repos.d]# yum -y clean all
Loaded plugins: fastestmirror
Cleaning repos: base c6-media extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
- 将源码包拷贝到jumpserver服务器,并解包
[root@localhost ~]# ls
anaconda-ks.cfg install.log.syslog yum.sh
install.log jumpserver-0.3.2.tar.gz
[root@localhost ~]# tar xf jumpserver-0.3.2.tar.gz -C /usr/src/ #jumpserver的包绝不能解压在root目录里,会出现权限问题
- 运行jumpserver自带的自动安装脚本
注意:安装过程中会自动从公网源下载rpm包,若打算窃取公网源rpm包进行jumpserver的本地化yum安装,那么需要打开yum配置文件的keepcache配置
[root@localhost ~]# cd /usr/src/jumpserver-0.3.2/
[root@localhost jumpserver-0.3.2]# ls
connect.py jasset jumpserver.conf logs service.sh
docs jlog juser manage.py