Tacport堡垒机安装
Tacport堡垒机安装
操作系统:RockyLinux 9.4
堡垒机:tacport-server-4.0.6-preview.tar.gz
数据库:mysql-5.7.44-1.el9.x86_64.rpm
一、安装数据库:
rpm -ivh mysql-5.7.44-1.el9.x86_64.rpm
source /etc/profile.d/mysql.sh
# 数据库初始密码为空
### 直接回车
mysql -uroot -p
二、创建Tacport数据库
# 配置数据库root密码
mysql> grant all on *.* to 'root'@'localhost' identified by 'root@123';
Query OK, 0 rows affected, 2 warnings (0.00 sec)
# 创建tacport数据库
mysql> create database tacport character set utf8 collate utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
# 创建用户和密码并授权
mysql> grant all on tacport.* to 'tacport'@'127.0.0.1' identified by 'tacport';
Query OK, 0 rows affected, 1 warning (0.00 sec)
# 刷新授权
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> select user,host from mysql.user;
+---------------+-----------+
| user | host |
+---------------+-----------+
| tacport | 127.0.0.1 |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+---------------+-----------+
4 rows in set (0.00 sec)


238

被折叠的 条评论
为什么被折叠?



