标签:sql get username conf people telnet user ini tool
centos7.6
安装java
export JAVA_HOME=/usr/jvm/java
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:${JRE_HOME}/lib
export PATH=$JAVA_HOME/bin:$PATH
export GUACAMOLE_HOME=/etc/guacamole
source /etc/profile
配置GUACAMOLE_HOME
mkdir /etc/guacamole
mkdir /etc/guacamole/extensions/
mkdir /etc/guacamole/lib
mkdir /root/.guacamole
touch /etc/guacamole/guacamole.properties
ln -s /etc/guacamole/guacamole.properties /root/.guacamole/
安装依赖包
yum install -y cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel uuid-devel ffmpeg-devel freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-deve libwebsockets-devel libwebsockets mariadb mariadb-server wget git libtool
安装apache-maven
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install -y apache-maven
git下载guacamole-server 和 guacamole-client
git clone git://github.com/apache/guacamole-server.git
git clone git://github.com/apache/guacamole-client.git
安装guacamole-server
cd guacamole-server/
autoreconf -fi
./configure --with-init-dir=/etc/init.d
make && make install
ldconfig
准备tomcat
apache-tomcat-8.5.38
安装guacamole-client
cd guacamole-client/
mvn package
cp guacamole-client/guacamole/target/guacamole-1.1.0.war /root/apache-tomcat-8.5.38/webapps/
配置数据库
systemctl start mariadb
创建数据库
CREATE DATABASE `guacamole_db` CHARACTER SET utf8 COLLATE utf8_general_ci;
还原sql
cd /root/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/schema
cat *.sql | mysql -u root -pabc@123 guacamole_db
复制java的mysql驱动,驱动网上找的
cp mysql-connector-java-5.1.34-bin.jar /etc/guacamole/lib/
配置guacamole 连接数据库信息
[root@guacamole schema]# cat /etc/guacamole/guacamole.properties
mysql-hostname: localhost
mysql-port: 3306
mysql-database: guacamole_db
mysql-username: root
mysql-password: abc@123
mysql-user-required: true
启动tomcat完事
http://ip:8080/guacamole-1.1.0/、
默认用户密码 guacadmin/guacadmin
标签:sql get username conf people telnet user ini tool
原文地址:https://www.cnblogs.com/menkeyi/p/10476915.html