在Ubuntu 20.04 | 18.04 | 16.04上安装LogicalDoc
LogicalDoc是一个文档管理系统,用于在组织中共享文档。
它还充当内容存储库,具有活动工作流程和Lucene索引。
LogicalDoc是用Java编写的。
按照以下步骤在Ubuntu 20.04 | 18.04 | 16.04 LTS上安装和配置LogicalDoc。
第1步:在Ubuntu上安装Java 11
我们将安装的LogicalDoc的版本需要Java 11才能工作。
对于Ubuntu 20.04,请运行:
sudo apt update sudo apt install openjdk-11-jdk
Ubuntu 18.04/16.04:
sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java11-set-default
安装后,我们可以使用以下方式查看版本:
$java -version openjdk version "11.0.7" 2017-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)
第2步:安装LogicalDoc依赖关系包
LogicalDoc还需要安装在SystemLibreOffice上的以下第三方软件:用于DocuityImageMagick的预览:用于操纵图片for previewingghostscript:用于将文档打印到虚拟DeviceTessact:Googlexpdf采用的开源OCR引擎:这是PDF到HTML的转换器格式
让我们将这些包安装到系统上:
sudo apt install libreoffice imagemagick ghostscript tesseract-ocr xpdf
第3步:安装和配置数据库
使用教程安装MariaDB数据库服务器:
在Ubuntu 18.04和Centos 7上安装MariaDB 10.x
在Ubuntu 20.04上安装MariaDB 10.x
安装安装并设置root密码设置后,将以下行添加到该部分 [mysqld]
在 /etc/mysql/my.cnf
文件。
sudo vim /etc/mysql/my.cnf
添加:
[mysql] default-character-set = utf8 [mysqld] character-set-server = utf8 collation-server = utf8_bin default-storage-engine = INNODB
重新开始 mysql
服务变更生效:
sudo systemctl restart mysql
创建数据库/用户
$mysql -u root -p CREATE DATABASE logicaldoc; GRANT ALL PRIVILEGES ON logicaldoc.* TO 'logicaldoc'@'localhost' \ IDENTIFIED BY "StrongPassword"; FLUSH PRIVILEGES; \q
第4步:安装LogicalDoc
从应用程序安装程序下载页面下载最新版本的LogicalDoc。
本撰写的最新版本是 8.4.1
export VER="8.4.2" wget https://s3.amazonaws.com/logicaldoc-dist/logicaldoc/installers/logicaldoc-installer-${VER}.zip
使用 unzip
命令:
sudo apt -y install unzip unzip logicaldoc-installer-${VER}.zip
要安装LogicalDoc,请从命令行执行命令:
chmod +x install.sh sudo ./install.sh
当询问数据库设置时,请在步骤3上提供如下配置
Command line arguments: Select your language 0 [x] eng 1 [ ] ita 2 [ ] spa 3 [ ] fra 4 [ ] deu Input selection: 0 ────────────────────────────────────────────────────────────────────────── Welcome ────────────────────────────────────────────────────────────────────────── Welcome to the installation of LogicalDOC 8.4.2! This software is developed by: - LogicalDOC <Hyman@theitroad> The homepage is at: https://www.logicaldoc.com Press 1 to continue, 2 to quit, 3 to redisplay 1 License Press 1 to accept, 2 to reject, 3 to redisplay 1 Select target path [/LogicalDOC] ────────────────────────────────────────────────────────────────────────── Select Installation Packages ────────────────────────────────────────────────────────────────────────── Select the packs you want to install: [x] Pack 'Base' required Done! Press 1 to continue, 2 to quit, 3 to redisplay 1 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Installation ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ==================== Installation started Framework: 5.1.3-84aaf (IzPack) Platform: ubuntu_linux,version=5.4.0-28-generic,arch=x64,symbolicName=null,javaVersion=11.0.7 [ Starting to unpack ] [ Processing package: Base (1/1) ] [ Unpacking finished ] Installation finished ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── User Data ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Registration Activation Code [] Name [] Organization [] Email [] Web site [] http://logicaldoc.examle.com Press 1 to continue, 2 to quit, 3 to redisplay 1 Thu Sep 13 00:03:31 EAT 2016 - INFO - Detected Java architecture 32bit ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── User Data ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Database Engine 0 [x] MySQL/MariaDB (suggested choice for production) 1 [ ] Oracle 2 [ ] SQL Server 3 [ ] PostgreSQL 4 [ ] Embedded (for trial only, not for production) Input selection: 0 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── User Data ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Database Username [] logicaldoc Password ** **** **** **** Server name/IP [localhost] Server port [3306] Database [logicaldoc] Instance [] [ ] Manual specification of the database connection URL Enter 1 to select, 0 to deselect: 1 Press 1 to continue, 2 to quit, 3 to redisplay 1
第5步:安装后设置
我们需要将启动服务复制到系统初始化目录中,以便能够在服务器引导中启动LogicalDoc:
sudo cp /LogicalDOC/bin/logicaldoc-all.service /etc/systemd/system sudo systemctl daemon-reload
启动并使服务启动启动:
sudo systemctl enable logicaldoc-all sudo systemctl start logicaldoc-all
使用默认浏览器打开LogicalDoc Web UI:http://localhost:8080 /。
第一次使用密码admin与帐户admin登录。