当前位置:网站首页>guacamole安装
guacamole安装
2022-06-26 12:35:00 【youyudexiaowangzi】
环境vmware+centos7
非docker环境
参考链接
Installing Guacamole natively — Apache Guacamole Manual v1.4.0
一.安装依赖包
依赖包如参考链接中的Required dependencies,逐个yum install xxx即可,xxx用的试centos对应的devel包
安装到ffmpeg的时候,报错:No package ffmpeg-devel available
新的安装ffmpeg的方式
su root
# RPM Fusion 存储库依赖于EPEL,启用epel
yum install epel-release
# 通过安装 rpm 包启用 RPM Fusion
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
# 启用存储库后,安装 FFmpeg
yum install ffmpeg ffmpeg-devel二.下载安装guacamole-server和guacamole-client
官网如下
点击download会看到历史版本,下载tar.gz格式的两个安装包
guacamole-server
# 解压
tar -xzf guacamole-server-1.4.0.tar.gz
cd guacamole-server-1.4.0/
# 初始化,配置
./configure --with-init-dir=/etc/init.d
# 编译
make
# 安装
make installguacamole-client的安装需要用到mvn所以先安装mvn,安装mvn需要用到jdk,centos默认安装的使openjdk,所以需要卸载openjdk,然后安装jdk,据说有mvn的openjdk配置方法,懒得尝试。暂不研究了
卸载openjdk,安装jdk
jdk8下载页面
# 查找系统内的openjdk包
rpm -qa | grep openjdk
---------------------------------------------
java-1.8.0-openjdk-headless-1.8.0.262.b10-1.el7.x86_64
java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64
----------------------------------------------
# 卸载openjdk包
rpm -qa | grep openjdk |xargs rpm -e --nodeps
# 验证,再次执行
rpm -qa | grep openjdk
没有输出了
#安装jdk
mkdir /usr/local/java
tar xf jdk-8u333-linux-x64.tar.gz -C /usr/local/java
# 配置环境变量
vim /etc/profile
export JAVA_HOME=/usr/local/java/jdk1.8.0_333
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin安装mvn
# 下载mvn
wget https://archive.apache.org/dist/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz
# 解压
tar -xzf apache-maven-3.8.5-bin.tar.gz
# 放到系统目录,如/usr/local/maven-3.8.5,或者其他目录
mv ./apache-maven-3.8.5 /usr/local/maven-3.8.5
# maven-3.8.5是一个目录,mvn在其bin目录下,需要配置环境变量
vim /etc/profile
添加如下
MAVEN_HOME=/usr/local/maven-3.8.5
export PATH=$PATH:$MAVEN_HOME/bin
###
# 注意这个export PATH,因为maven和java都是在/etc/profile中配置的,最后可以一次性导出
# export PATH=$PATH:$MAVEN_HOME/bin:$JAVE_HOME/bin
###
# 使环境变量生效
source /etc/profile
# 测试mvn
mvn -version编译guacamole-client
# 解压
tar -xzf guacamole-client-1.4.0.tar.gz
cd guacamole-client-1.4.0
# build
mvn package如果安装nodejs失败,如果安装nodejs失败,如果安装nodejs失败,虚拟机中mvn执行失败,
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:install-node-and-npm (install-node-and-npm) on project guacamole: Could not download Node.js: Could not download https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-x64.tar.gz: Remote host terminated the handshake: SSL peer shut down incorrectly -> [Help 1]
手动复制链接在windows主机中是可以下载的,手动在centos中安装也是成功的,但是再次执行mvn package还是会失败在这个地方,第二天早上再试一次mvn package就成功了。暂不清楚原因。
三.部署guacamole
需要tomcat。据说有nginx代理的方式,以后再研究
tomcat官网
tar -xzf ./apache-tomcat-10.0.22.tar.gz
mv ./apache-tomcat-10.0.22 /usr/local/tomcat
# 这个不是必须的
# init.d 目录中存放的是一系列系统服务的管理(启动与停止)脚本
ln /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat
# 这个不是必须的
# 配置tomcat开机启动
vim /etc/rc.d/rc.local
最后添加
/usr/local/tomcat/bin/startup.sh
# 配置CATALINA_HOME
vim /etc/profile
添加
export CATALINA_HOME=/usr/local/tomcat
# 启动tomcat
/usr/local/tomcat/bin/startup.sh复制gucamole-client的war文件,此处tomcat安装位置是/usr/local/tomcat。如果tomcat安装其他目录,不要写错了
cp guacamole/target/guacamole-1.4.0.war /usr/local/tomcat/webapps/重启tomcat
/etc/init.d/tomcat stop
/etc/init.d/tomcat start
###
# /etc/init.d/tomcat 就是原/usr/local/tomcat/bin/catalina.sh
###启动guacd
/etc/init.d/guacd start这才仅仅是安装好了guacd,guacamole的配置还需要参考
边栏推荐
- 程序员必备,一款让你提高工作效率N倍的神器uTools
- 初探Protostuff的使用[通俗易懂]
- Laravel subdomain accesses different routing files and different modules
- 7-2 摘花生
- What are the top ten securities companies? Is it safe to open a mobile account?
- On the use of protostaff [easy to understand]
- Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
- Thinkphp5 query report: sqlstate[hy093]: invalid parameter number
- fastjson的JSONArray和JSONObject[通俗易懂]
- PHP calculates excel coordinate values, starting with subscript 0
猜你喜欢

NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools

TP5 thinkphp5 report serialization of'closure'is not allowed

Ad - update the modified PCB package to the current PCB

New routing file in laravel framework

小程序中控件里面的内容较多,让其支持滚动的良好方案

Laravel subdomain accesses different routing files and different modules

Build Pikachu shooting range and introduction

Basic principle of MOS tube and important knowledge points of single chip microcomputer

Tiger DAO VC产品正式上线,Seektiger生态的有力补充

Redis learning - 05 node JS client operation redis and pipeline pipeline
随机推荐
JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
老司机总结的12条 SQL 优化方案(非常实用)
PHP unit conversion
SQL injection in Pikachu shooting range
Examples of how laravel uses with preload (eager to load) and nested query
Introduction to the four major FPGA manufacturers abroad
webgame开发中的文件解密
Typescript learning (I) type
Microservice governance (nocas)
Msvcr110 not found DLL, unable to continue code execution Solution for startup
Analysis report on the "fourteenth five year plan" and investment prospect of China's pharmaceutical equipment industry 2022-2028
NLP-D60-nlp比赛D29
nvm安装教程
International beauty industry giants bet on China
PHP get directory size
Scala-day03- operators and loop control
SQL injection
环形队列php
NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools
sqlalchemy event listen Automatic generate CRUD excel