不得不说 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 [email protected]‘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
原文地址:https://www.cnblogs.com/kinome/p/10276812.html
时间: 2024-11-04 01:59:10