guacamole部署

centos7.6java

 

安裝javamysql

 

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/guacamolegit

source /etc/profilegithub

 

配置GUACAMOLE_HOMEweb

mkdir /etc/guacamolesql

mkdir /etc/guacamole/extensions/數據庫

mkdir /etc/guacamole/libapache

mkdir /root/.guacamolecentos

touch /etc/guacamole/guacamole.propertiestomcat

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

相關文章
相關標籤/搜索