OpenKM在線文檔庫系統 - 安裝版

用了將近1周時間,終於可以把OpenKM正式上線了。php

下面把安裝的過程和配置分享給你們。mysql

OS: CentOS 5.4基本安裝c++

OpenKM: OpenKM 5.1.7sql

1. 下載OpenKM軟件數據庫

http://sourceforge.net/projects/openkmcentos

2. 安裝tesseract ocr瀏覽器

yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel gcc gcc-c++ make -y


wget http://www.leptonica.com/source/leptonlib-1.67.tar.gz
tar -zxvf leptonlib-1.67.tar.gz
./configure
make
make install


wget http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz
tar -zxvf tesseract-3.00.tar.gz
./configure && make && sudo make install
cd /usr/local/share/tessdata


wget http://tesseract-ocr.googlecode.com/files/deu.traineddata.gz
gunzip deu.traineddata.gz

3. 安裝OpenOfficesass

yum install openoffice* -y

(其實只要安裝幾個軟件就能夠了)app

4. 安裝swftoolsfrontend

yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel -y

wget http://www.swftools.org/swftools-0.9.1.tar.gz
tar -zxvf swftools-0.9.1.tar.gz
cd swftools-0.9.1
./configure
make
make install

 5. 安裝ImageMagick

yum install ImageMagick -y

 6. 安裝ClamAV

yum install unzip bzip2 unrar perl-DBD-mysql -y


wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -i rpmforge-release-0.5.2-2.el6.rf.i686.rpm

 更新/etc/yum.repos.d/CentOS-Base.repo文件,在Base和update中添加如下內容:

[base]
exclude=spamassass*
...
[updates]
exclude=spamassass*
...

 再安裝

yum install amavisd-new spamassassin clamav clamd -y

sa-update
chkconfig --levels 235 amavisd on
chkconfig --levels 235 clamd on
/usr/bin/freshclam
/etc/init.d/amavisd start
/etc/init.d/clamd start
mkdir /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
chown amavis /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
ln -s /var/run/clamav/clamd.sock /var/spool/amavisd/clamd.sock

 7. 運行OpenKM

cd /opt
unzip /root/OpenKM-5.1.7_JBoss-4.2.3.GA.zip
cd jboss-4.2.3.GA

./bin/run.sh -b 0.0.0.0

 使用瀏覽器訪問OpenKM

http://OpenKM_IP:8080/OpenKM

默認的管理員賬號和密碼

賬號:okmAdmin
密碼:admin

 8. 中止OpenKM服務

若是是前臺運行的,Ctrl+C

若是是後臺運行的

/opt/jboss-4.2.3.GA/bin/shutdown.sh -S

9. 修改OpenKM.cfg

#system.ocr=/usr/bin/cuneiform
#system.openoffice.path=/usr/lib/openoffice
#system.imagemagick.convert=/usr/bin/convert
#system.swftools.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscan
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none 
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp

將hibernate.hbm2ddl的值從create改成none

(運行系統後,使用賬號登陸後,在更新此選項,目的是創建初始的數據庫)

安裝篇結束。

 

參考文檔:

1. http://blog.srvme.de/2011/04/16/install-openkm-on-centos-5/

2. http://wiki.centos.org/HowTos/Amavisd

3. http://wiki.openkm.com/index.php/Quick_Install

相關文章
相關標籤/搜索