Teleport installation

 First, install

Aiming v3.x and later explained.

Download and install 1.1

Teleport supports the following Linux deployment platform  (if you deploy through on other Linux platforms, please let us know) :

  • Ubuntu 14.04 64 spaces and above
  • CentOS 7.0 64 spaces and above
  • Debian 6.0 64 spaces and above
  • Redhat 6.2 64 spaces and above

Teleport installation deployment is very simple, just a minute to complete. You need to download binary packages . To facilitate understanding, the follow-up to this article assumes that version 3.0.2.9 as an example.

The downloaded installation package into a temporary directory, then execute the following command:

tar -zxvf teleport-linux-3.0.2.9.tar.gz
cd teleport-linux-3.0.2.9
sudo ./setup.sh

 

When you need to specify installation path, you can use the default installation path /usr/local/teleport(directly enter), you can specify a different path, note the path do not contain Chinese characters or spaces , in order to avoid unpredictable errors occur. The default video playback files located in /usr/local/teleport/data/replaythe directory, will occupy /usrthe space, it is recommended that the installation is complete configuration file storage path of video playback .

linux-install

Only a few seconds, the installation is complete, the fortress machine core services and WEB services have been started automatically. You can access http://teleport服务器IP:7190/to initial setting.

1.2 Initial Configuration

初次安装完成后,可以访问 http://你的teleport服务器IP:7190/进行初始化设置。

初始化设置时,需要确定使用的数据库类型。Teleport默认使用内建的sqlite3数据库,因此无需额外安装数据库服务即可开始使用堡垒机的各项功能。如果您希望使用MySQL数据库,请在初始化之前进行MySQL数据库配置

您需要在这里设置系统管理员的账号和密码,此账号具有系统的最高权限,请务必牢记密码。设置完成后,点击“开始配置”按钮即可完成初始配置工作了:

web-init-config-step2

初始化配置完成后,刷新页面即可进入teleport的登录界面。

 

 

 

 


二、升级

注意:升级之前,请确保备份了您的数据!! 升级过程中也会再次提示您备份数据!

2.1 备份数据

默认情况下,teleport的配置文件、数据文件等均放在 /usr/local/teleport/data 目录下,因此,您可以将此目录进行备份即可。需要注意的是,默认的录像回放文件也在此目录下,因此有可能数据量会比较大。

2.2 下载并升级

一旦备份完成,就可以进行升级了。升级过程也很简单,与安装过程基本一致。您需要下载最新的安装包,解压,然后以 root 身份运行压缩包中的 setup.sh 脚本,像这样:

tar -zxvf teleport-linux-3.0.2.9.tar.gz
cd teleport-linux-3.0.2.9
sudo ./setup.sh

 

The installation script will automatically detect the path of the current version and installed, and asks the operator to perform. Here we want to upgrade, follow the prompts, enter  g and press Enter, then will confirm the upgrade and confirm that the data has been backed up, here we enter  y and press Enter to confirm, after which the install script will stop teleport services, copy the new version of the file and then restart the service, like this:

linux-upgrade


Third, the service control

Teleport there are two services: core services  core and web services  web. Two services simultaneously start, stop, restart, which may be a separate operation.

The full operation of teleport services:

  • start up: /etc/init.d/teleport start
  • stop: /etc/init.d/teleport stop
  • Restart: /etc/init.d/teleport restart
  • Check the status: /etc/init.d/teleport status

Operating only core services core:

  • start up: /etc/init.d/teleport start core
  • stop: /etc/init.d/teleport stop core
  • Restart: /etc/init.d/teleport restart core

Only operate the web service web:

  • start up: /etc/init.d/teleport start web
  • stop: /etc/init.d/teleport stop web
  • Restart: /etc/init.d/teleport restart web

Guess you like

Origin www.cnblogs.com/dalianpai/p/12360332.html