日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

jumpserver 使用教程_jumpserver安装及使用教程

發布時間:2023/11/27 生活经验 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jumpserver 使用教程_jumpserver安装及使用教程 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我自己是jumpserver的新手,以下兩個鏈接是比較好的教程:

安裝教程:http://blog.csdn.net/wanglei_storage/article/details/51001810

使用教程:http://blog.csdn.net/wanglei_storage/article/details/51002206

安裝報錯總結:http://www.cnblogs.com/521football/p/6069574.html

服務器環境:

ip:192.168.1.72

系統:Centos6.8 mini

適用于版本:v0.3.1-2

1. 安裝git

yum -y install git

2. 下載jumpserver

cd /opt

git clone https://github.com/jumpserver/jumpserver.git

注:不要安裝在/root、/home 等目錄下,以免權限問題

3. 執行安裝腳本

cd jumpserver/install

python install.py

4.jms安裝錯誤匯總

You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting django==1.6 (from -r requirements.txt (line 1))

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning

Downloading Django-1.6-py2.py3-none-any.whl (6.7MB)

25% |████████??????????????????????? | 1.7MB 6.7kB/s eta 0:12:28Exception:

Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 223, in main

status = self.run(options, args)

File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 290, in run

requirement_set.prepare_files(finder)

File "/usr/lib/python2.6/site-packages/pip/req/req_set.py", line 334, in prepare_files

functools.partial(self._prepare_file, finder))

File "/usr/lib/python2.6/site-packages/pip/req/req_set.py", line 321, in _walk_req_to_install

more_reqs = handler(req_to_install)

File "/usr/lib/python2.6/site-packages/pip/req/req_set.py", line 491, in _prepare_file

session=self.session)

File "/usr/lib/python2.6/site-packages/pip/download.py", line 825, in unpack_url

session,

File "/usr/lib/python2.6/site-packages/pip/download.py", line 673, in unpack_http_url

from_path, content_type = _download_http_url(link, session, temp_dir)

File "/usr/lib/python2.6/site-packages/pip/download.py", line 886, in _download_http_url

_download_url(resp, link, content_file)

File "/usr/lib/python2.6/site-packages/pip/download.py", line 621, in _download_url

for chunk in progress_indicator(resp_read(4096), 4096):

File "/usr/lib/python2.6/site-packages/pip/utils/ui.py", line 133, in iter

for x in it:

File "/usr/lib/python2.6/site-packages/pip/download.py", line 586, in resp_read

decode_content=False):

File "/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 307, in stream

data = self.read(amt=amt, decode_content=decode_content)

File "/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 267, in read

raise ReadTimeoutError(self._pool, None, 'Read timed out.')

ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

安裝JumpServer 依賴的python庫失敗!

解決方法:指定源安裝

pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

數據庫連接失敗 (1045, "Access denied for user 'jumpserver'@'localhost' (using password: YES)")

解決方法(說明本地已經存在數據庫了):

mysql -e "create database jumpserver charset='utf8';"

mysql -e "grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by '5Lov@wife';"

mysql -e "flush privileges;"

是否安裝新的MySQL服務器? (y/n) [y]: n (忽略即可)

5.接下來輸入已經安裝好的percona-server-5.6.25-73.1.tar.gz的 數據庫,那么使用接下來會報錯。

這里有一個注意點,使用python連接 percona-server時必須要系統中要安裝Percona-Server-shared-56-5.6.25-rel73.1.el6.x86_64.rpm

我們看Percona-Server-shared-x x x的版本應該和percona-server的版本一致。

那么下載地址為http://repo.percona.com/centos/6/os/x86_64/

這里下載指定版本的URL為:wget http://repo.percona.com/centos/6/os/x86_64/Percona-Server-shared-56-5.6.25-rel73.1.el6.x86_64.rpm

然后在rpm -ivh?Percona-Server-shared-56-5.6.25-rel73.1.el6.x86_64.rpm

執行python install.py

5.安裝成功

請輸入管理員用戶名 [admin]: admin

請輸入管理員密碼: [5Lov@wife]: 5Lov@wife

請再次輸入管理員密碼: [5Lov@wife]: 5Lov@wife

Starting jumpserver service:?????????????????????????????? [? OK? ]

安裝成功,Web登錄請訪問http://ip:8000, 祝你使用愉快。

請訪問 https://github.com/jumpserver/jumpserver/wiki 查看文檔

總結

以上是生活随笔為你收集整理的jumpserver 使用教程_jumpserver安装及使用教程的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。