码迷,mamicode.com
首页 > 其他好文 > 详细

guacamole部署

时间:2019-03-05 15:38:50      阅读:443      评论:0      收藏:0      [点我收藏+]

标签: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

guacamole部署

标签:sql   get   username   conf   people   telnet   user   ini   tool   

原文地址:https://www.cnblogs.com/menkeyi/p/10476915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!