我必须运行哪些命令才能取消安装tomcat9并安装tomcat8。 我这样做的原因是我无法使fuseki.war作为应用程序运行。我得到
FAIL - Application at context path [/fuseki] could not be started
答案 0 :(得分:0)
1。删除tomcat
要从Ubuntu中删除系统和配置文件。
sudo apt remove --purge tomcat9 tomcat9-docs
sudo apt autoremove
sudo apt autoclean
找到并手动删除剩余文件(如果有的话)
sudo apt install locate && sudo updatedb
locate tomcat
2。安装apache Jena fuseki
wget https://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-3.8.0.tar.gz
cd /opt
sudo tar xzf ~/apache-jena-fuseki-3.8.0.tar.gz
sudo ln -s apache-jena-fuseki-3.8.0 fuseki
创建fuseki用户
sudo adduser --system --home /opt/fuseki --no-create-home fuseki
对于安装,我们遵循《文件系统层次结构标准》:
在/var/lib
文件夹中:
sudo mkdir -p fuseki/{backups,databases,system,system_files}
sudo chown -R fuseki fuseki
cd /var/log
sudo mkdir fuseki
sudo chown fuseki fuseki
cd /etc
sudo mkdir fuseki
sudo chown fuseki fuseki
cd /etc/fuseki
sudo ln -s /var/lib/fuseki/* .
sudo ln -s /var/log/fuseki logs
创建服务
在/ etc / default / fuseki中进行编辑:
FUSEKI_HOME = / opt / fuseki
FUSEKI_BASE = / etc / fuseki
FUSEKI_USER = fuseki
JAVA_OPTIONS =“-Xmx2048M”
在init.d
中创建符号链接:
cd /etc/init.d
sudo ln -s /opt/fuseki/fuseki .
启动服务
sudo service fuseki start
sudo update-rc.d fuseki defaults