centos 7 搭建开源堡垒机 Teleport 遇到的问题解决
2023-09-27 14:25:37 时间
不得不说 centos7 的环境版本就是高,没有再出现6.5下那些依赖组件的版本支持过低的错误了,所以说现在个人用户还是推荐用7,企业生产环境的话,可能6.5适合一些,至少2年前是这样。
安装过程: https://docs.tp4a.com/install/#_1
https://www.cnblogs.com/xuegqcto/p/9052009.html 这个有 mariadb(mysql)的安装和配置过程
https://blog.csdn.net/noonncmzba/article/details/80104476 这个解决了创建表失败的问题
配置mysql的时候,需要的命令
> create database teleport default character set utf8 collate utf8_general_ci; > grant all privileges on teleport to 'teleport'@'127.0.0.1' identified by 'password'; > flush privileges;
中间那条 grant all不行就用下面这条(用这条成功的)
grant all privileges on teleport.* to teleport@'localhost' identified by 'password';
然后 flush privileges;
配置root远程访问:https://www.cnblogs.com/24la/p/mariadb-remoting-access.html
要点:要先判断是不是防火墙开启了,因为这个端口可能是默认被防火墙拦截了,所以要开放访问或者关掉防火墙。
关闭防火墙:https://www.cnblogs.com/moxiaoan/p/5683743.html
因为修改web.xml后 ,有时候web服务起不来,有时候起来了访问不了,所以这个下面的是成功的 web.xml
; codec: utf-8
[common]
; ip=0.0.0.0
; port listen by web server, default to 7190.
; DO NOT FORGET update `common::web-server-rpc` in core.ini if you modified this setting.
port=7190
; log file of web server, default to /var/log/teleport/tpweb.log
; log-file=/var/log/teleport/tpweb.log
; `log-level` can be 0 ~ 4, default to 2.
; LOG_LEVEL_DEBUG 0 log every-thing.
; LOG_LEVEL_VERBOSE 1 log every-thing but without debug message.
; LOG_LEVEL_INFO 2 log information/warning/error message.
; LOG_LEVEL_WARN 3 log warning and error message.
; LOG_LEVEL_ERROR 4 log error message only.
log-level=2
; 0/1. default to 0.
; in debug mode, `log-level` force to 0 and display more message for debug purpose.
debug-mode=0
; `core-server-rpc` is the rpc interface of core server.
; default to `http://127.0.0.1:52080/rpc`.
; DO NOT FORGET update this setting if you modified rpc::bind-port in core.ini.
core-server-rpc=http://127.0.0.1:52080/rpc
[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=password
相关文章
- CentOS离线状态下安装Python3.7.0
- Centos 7 搭建蓝鲸V4.1.16社区版
- CentOS系统管理员权限的相关命令
- CentOS操作系统进行简单信息查询
- CentOS 开机 GRUB 报错,进入救援模式修复根文件系统
- ELRepo - Enterprise Linux (RHEL、CentOS 及 SL)的社区仓库
- Centos应用“Cannot allocate memory”的解决方案
- 基于 CentOS 7 搭建 SVN
- Linux Centos7 tomcat9安装配置,Centos Tomcat开机启动
- Linux-008-Centos 安装 Python 2.7.5
- Centos 系统下安装jdk1.8
- 在centos中php 在连接mysql的时候,出现Can't connect to MySQL server on 'XXX' (13)
- linux centos 7上运行teamviewer与找不到ID问题处理办法
- CentOS 7 Tomcat 8 9 基于APR库性能优化
- Centos修改系统语言