jumpserver1.1.0搭建-cent7.x-整理完详细笔记文档.docx

jumpserver1.1.0搭建-cent7.x-整理完详细笔记文档.docx

  1. 1、本文档共41页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多

jumpserver1.0.0版本的堡垒机搭建-cent7.x(7.4)

jumpserver视频腾讯课堂链接地址:/course/424260?taid=3725076675852612

1.安装jumpserver1.0.0——66jumpserver机器:

[root@localhost~]#hostnamectlset-hostnamejumpserver

1)关闭selinux和防火墙

[root@jumpserver~]#setenforce0

[root@jumpserver~]#cat/etc/selinux/config

SELINUX=disabled

[root@jumpserver~]#systemctlstopfirewalld.service;systemctldisablefirewalld.service

2)修改字符集,否则可能报input/outputerror的问题,因为日志里打印了中文

[root@jumpserver~]#localedef-c-fUTF-8-izh_CNzh_CN.UTF-8

[root@jumpserver~]#exportLC_ALL=zh_CN.UTF-8

[root@jumpserver~]#echoLANG=zh_CN.UTF-8/etc/locale.conf

[root@jumpserver~]#exit

再重新连接,这样语言环境就改变了。

3)准备python3(3.6)和python虚拟环境

(1)安装依赖包

注:安装前,可以开启yum缓存功能,把软件包下载下来,方便后期使用。

[root@jumpserver~]#vim/etc/yum.conf

改:keepcache=0

为:keepcache=1

[root@jumpserver~]#head-3/etc/yum.conf

[main]

cachedir=/var/cache/yum/$basearch/$releasever

keepcache=1

[root@jumpserver~]#du-sh/var/cache/yum/

78M /var/cache/yum/

[root@jumpserver~]#yum-yinstallwgetsqlite-develxzgccautomakezlib-developenssl-develepel-releasegit

(2)编译安装python3.6.1

[root@jumpserver~]#cd/opt/

[root@jumpserveropt]#rz

上传python3.6

[root@jumpserveropt]#ls

Python-3.6.1.tar.xz

[root@jumpserveropt]#tarxvfPython-3.6.1.tar.xz

[root@jumpserveropt]#ls

Python-3.6.1Python-3.6.1.tar.xz

[root@jumpserveropt]#cdPython-3.6.1

[root@jumpserverPython-3.6.1]#ls

aclocal.m4configureGrammarLibMakefile.pre.inObjectsPCbuildPythonTools

config.guessconfigure.acIncludeLICENSEMiscParserProgramsREADME.rst

config.subDocinstall-shMacModulesPCpyconfig.h.insetup.py

[root@jumpserverPython-3.6.1]#./configuremake-j4makeinstall

安装完成后,如下:

Collectingsetuptools

Collectingpip

Installingcollectedpackages:setuptools,pip

Successfullyinstalledpip-9.0.1setuptools-28.8.0

[root@jumpserverPython-3.6.1]#echo$?

0

这里必须执行编译安装,否则在安装Pytho

文档评论(0)

shijianqiang + 关注
实名认证
内容提供者

高级 Linux 运维工程师持证人

工作以来一直奋斗在运维的前线,对整个运维流程有比较详细的了解、各类服务的部署维护、常用中间件、数据库、排查故障、监控报警、容器和k8s方面有较强的项目实战经验。

领域认证该用户于2024年03月29日上传了高级 Linux 运维工程师

1亿VIP精品文档

相关文档