官方文檔:http://teleport.eomsoft.net/doc#!1
一、Teleport介紹
Teleport是觸維軟件推出的一款簡單易用的堡壘機系統,具有小巧、易用、易於集成的特點,支持RDP和SSH協議的跳轉。
Teleport由兩大部分構成:
- Teleport跳板核心服務
- WEB操作界面
Teleport非常小巧且極易安裝部署:僅需一分鍾,就可以安裝部署一套您自己的堡壘機系統!!
支持的操作系統- Ubuntu 14.04 64位 及以上版本
- CentOS 6.2 64位 及以上版本
- Debian 6.0 64位 及以上版本
- Redhat 6.2 64位 及以上版本
- Teleport是一個完整的堡壘機系統,可以直接安裝使用。同時Teleport也提供了應用接口,可以與您現有的運維系統集成。如何使用,由您說了算!
- 開箱即用 我們提供Teleport機架式服務器,開箱即可使用;
- 直接使用 將Teleport安裝部署在一台服務器上,即可直接使用;
- 系統集成 利用Teleport開放的應用接口,將Teleport堡壘機功能與您現有運維系統集成到一起;



vim /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.1/centos7-amd64/ gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
-
systemctl start mariadb #啟動服務
-
systemctl enable mariadb #設置開機啟動
-
mysql -uroot -p #
登錄到MariaDB,此時root賬戶的密碼為空,直接回車即可,退出Mariadb,exit;即可。 - mysql_secure_installation # 進行MariaDB的相關簡單配置
- 命令進行配置(先退出數據庫)
-
首先是設置密碼,會提示先輸入密碼
Enter current password for root (enter for none):<–初次運行直接回車
設置密碼
Set root password? [Y/n] <– 是否設置root用戶密碼,輸入y並回車或直接回車
New password: <– 設置root用戶的密碼
Re-enter new password: <– 再輸入一次你設置的密碼
其他配置 一路next
Remove anonymous users? [Y/n] <– 是否刪除匿名用戶,回車
Disallow root login remotely? [Y/n] <–是否禁止root遠程登錄,回車(后面授權配置)
Remove test database and access to it? [Y/n] <– 是否刪除test數據庫,回車
Reload privilege tables now? [Y/n] <– 是否重新加載權限表,回車
- 配置mariadb字符集
- 使用vim /etc/my.cnf.d/server.cnf命令編輯server.cnf文件,在[mysqld]標簽下添加:
-
init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci skip-character-set-client-handshake lower_case_table_names=1 #數據庫大小寫
- systemctl restart mariadb #配置初始化完成,重啟Mariadb
- show variables like "%character%";show variables like "%collation%"; #登陸查看字符集
-
create user teleport@localhost identified by 'abc123'; #添加用戶
-
select host,user,password from user; # 簡單的用戶和權限配置就完成了。
MariaDB [mysql]> create database teleport default character set utf8 collate utf8_general_ci; //創建數據庫一定要指定utf8,否則會出現亂碼 MariaDB [mysql]> grant all privileges on teleport to 'teleport'@'127.0.0.1' identified by 'abc123'; //僅允許本機訪問,沒對外開放訪問 Query OK, 0 rows affected (0.00 sec) MariaDB [mysql]> flush privileges; Query OK, 0 rows affected (0.00 sec)
2.1.3 修改 /usr/local/teleport/data/etc/web.ini
[database] ; database in use, should be sqlite/mysql, default to sqlite. ; type=sqlite type=mysql ; sqlite-file=/usr/local/teleport/data/db/teleport.db mysql-host=127.0.0.1 mysql-port=3306 mysql-db=teleport mysql-prefix=tp_ mysql-user=teleport mysql-password=abc123



