centos 7 搭建开源堡垒机 Teleport 遇到的问题解决
  7OL62ffczKO0 2023年11月02日 38 0

 

 

不得不说 centos7 的环境版本就是高,没有再出现6.5下那些依赖组件的版本支持过低的错误了,所以说现在个人用户还是推荐用7,企业生产环境的话,可能6.5适合一些,至少2年前是这样。

安装过程: ​​https://docs.tp4a.com/install/#_1​

配置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;


要点:要先判断是不是防火墙开启了,因为这个端口可能是默认被防火墙拦截了,所以要开放访问或者关掉防火墙。

因为修改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

 



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  Gmus5gIMInPU   2023年11月13日   66   0   0 其他Centos7
  V8pJJzS5Z7xm   2023年11月13日   33   0   0 Centos7
  aHqqwBZuiKkn   2023年11月13日   25   0   0 DNSmysqlCentOS
7OL62ffczKO0