centos 7 搭建开源堡垒机 Teleport 遇到的问题解决

网友投稿 365 2022-10-31


centos 7 搭建开源堡垒机 Teleport 遇到的问题解决

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

安装过程: ​​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 `DO NOT FORGET update this setting if you modified rpc::bind-port in core.ini.core-server-rpc=database in use, should be sqlite/mysql, default to sqlite.; type=sqlitetype=mysql; sqlite-file=/usr/local/teleport/data/db/teleport.dbmysql-host=127.0.0.1mysql-port=3306mysql-db=teleportmysql-prefix=tp_mysql-user=teleportmysql-password=password


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:centos7 部署 nginx+tomcat+MariaDB 环境并安装安全狗,使用natapp隧道
下一篇:Java调用R语言实例讲解
相关文章

 发表评论

评论列表