DMS文档内容管理系统一览表
软件名称 |
版本 |
运行平台 |
架构组件 |
优点 |
缺点 |
备注 |
Logicaldoc |
6.7 |
Linuxwindow |
Java+tomcat+mysql |
最新版支持中文,文件层次结构清晰,易于管理,查阅;支持文件的签出签入;支持officePDF等常用文件格式;支持GPU文件权限管理 |
社区版的不支持在线预览 |
推荐系数3 |
Magnolia |
4.5.8 |
Linuxwindow |
Java+tomcat |
基于WEB内容管理系统,支持XML文件的到处导入,对相关文件提供在线编辑功能 |
主界面不支持中文,文件格式以网页为主 |
推荐系数1 |
DokuWiki |
2013-05-10 |
Linuxwindow |
Apache/Nginx/IIS+PHP |
支持中文,数据基于文本存储,不需要要数据库;版本控制;访问控制;插件模块化;国际化,支持全文检索 |
推荐系数2 |
通过上面的比较,Logicaldoc是比较适合我们目前的需求,因此下面就以Logicaldoc的安装配置做一下详细的介绍:
操作系统:centos6.4(最小化安装)
硬件平台:无(vm)
软件包版本:Java+Tomcat+Mysql架构,集成到一台机器
程序软件包版本:jdk-6u45-linux-x64.binmysql-5.5.31.tar.gzlogicaldoc-6.7-tomcat-bundle.zip
1.Java+Mysql的安装脚本如下:
#mkdir/software
将下载好的JDK的包和mysql的包上传到此目录,然后粘贴一下脚本,+x去执行:
#!/bin/bash
####yuminstallbasicpackets########
yum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-develbzip2bzip2-develncursesncurses-develcurlcurl-devele2fsprogse2fsprogs-develkrb5krb5-devellibidnlibidn-developensslopenssl-developenldapopenldap-develnss_ldapopenldap-clientsopenldap-serverssetuptoolntsysvsystem-config-securitylevel-tuisystem-config-network-tuiopensslvimwgetmakebind-utilsntpgccgcc-c++ncurses-devellibxml2libxml2-develcmake
cd/software
wgethttp://jaist.dl.sourceforge.net/project/logicaldoc/distribution/LogicalDOC%20CE%206.7/logicaldoc-6.7-tomcat-bundle.zip
mkdir-p/usr/local/webserver/
cpjdk-6u45-linux-x64.bin/usr/local/webserver/
cd/usr/local/webserver/
chmod+xjdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
ln-sf/usr/local/webserver/jdk1.6.0_45//usr/local/jdk6
ln-sf/usr/local/webserver/jdk1.6.0_45/bin/java/usr/bin/
ln-sf/usr/local/webserver/jdk1.6.0_45/bin/javac/usr/bin/
cat>>/etc/profile< JAVA_HOME=/usr/local/jdk6 PATH=$JAVA_HOME/bin:$PATH exportPATH EOF source/etc/profile Java=`java-version` echo$Java&&echo"installjavaok" /usr/sbin/useradd-M-s/sbin/nologinmysql cd- tarzxvfmysql-5.5.31.tar.gz cdmysql-5.5.31 cmake-DCMAKE_INSTALL_PREFIX=/usr/local/webserver/mysql5.5-DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_DATADIR=/data0/mysql/3306/data/ -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306&&make&&makeinstall&&echo"installOK" chmod+w/usr/local/webserver/mysql5.5/ chown-Rmysql:mysql/usr/local/webserver/mysql5.5/ mkdir-p/data0/mysql/3306/data chown-Rmysql:mysql/data0/mysql /usr/local/webserver/mysql5.5/scripts/mysql_install_db--basedir=/usr/local/webserver/mysql5.5/--datadir=/data0/mysql/3306/data/--user=mysql cpsupport-files/my-medium.cnf/etc/my.cnf y cpsupport-files/mysql.server/etc/init.d/mysql chmod+x/etc/init.d/mysql sed-i'37a\basedir=/usr/local/webserver/mysql5.5'/etc/my.cnf sed-i'38a\datadir=/data0/mysql/3306/data'/etc/my.cnf sed-i'39a\log-error=/data0/mysql/3306/mysql_error.log'/etc/my.cnf sed-i'40a\pid-file=/data0/mysql/3306/mysql.pid'/etc/my.cnf chkconfig--addmysql chkconfigmysqlon servicemysqlstart 2.检查mysql支持innodb,并创建logicaldoc数据库 mysql>createdatabaselogicaldoc; QueryOK,1rowaffected(0.00sec) mysql>createuserlogicaldoc; QueryOK,0rowsaffected(0.02sec) mysql>setpasswordfor'logicaldoc'@'%'=password('mykj123'); QueryOK,0rowsaffected(0.00sec) mysql>grantallprivilegesonlogicaldoc.*to'logicaldoc'@'%'; QueryOK,0rowsaffected(0.00sec) mysql>flushprivileges; QueryOK,0rowsaffected(0.00sec) mysql>\q Bye 3.安装tomcatLogicaldoc包 #yuminstallunzip #cd/ #mvlogicaldoc-6.7-tomcat-bundle/logicaldoc #chmod+x/logicaldoc/tomcat/bin/* #/logicaldoc/tomcat/bin/catalina.shrun(启动tomcat) 4.通过http://ip:8080/logicaldoc/setup去安装完成。默认账户admin密码admin DatabasesType:External DatabaseEngine:Msql DriverClass:com.mysql.jdbc.Driver 登录地址:http://192.168.6.100:8080/logicaldoc访问 这里需要注意:如果连接数据库出现550的错误,看tomcat启动日志会显示是连接数据库出的错误,这里需要注意你的主机名,localhost.localdomain,或者将上面的localhost改为服务器的ip也可以,或者添加hosts记录 系统数据的备份恢复: 数据库备份脚本: echo"YouareInBackupDirectory" cd/mysqlback Now=$(date+"%Y%m%d") File=Mykj-$Now.sql.gz /usr/local/webserver/mysql5.5/bin/mysqldump-uroot-p'mykj123'--all-databases|gzip>$File echo"YourDatabaseBackupSuccessfullyCompleted" #!/bin/bash echo"YouareInBackupDirectory" cd/mysqlback Now=$(date+"%Y%m%d") File=Logicaldoc-$Now.sql.gz /usr/local/webserver/mysql5.5/bin/mysqldump-uroot-p'mykj123'logicaldoc|gzip>$File echo"YourDatabaseBackupSuccessfullyCompleted" 仓库使用tar命令结合shell脚本,计划任务,实现增量备份或者使用bacula,Rsync等备份软件都可以。 dayofweek=`date"+%u%H"` today=`date"+%Y%m%d%H%M"` source=/data backup=/logicaldocback/ cd$backup if[$dayofweek-eq1];then if[!-f"full$today.tar.gz"];then rm-rfsnapshot tar-gsnapshot-zcf"full$today.tar.gz"$source--exclude$sourceserver.log fi else if[!-f"inc$today.tar.gz"];then tar-gsnapshot-zcf"inc$today.tar.gz"$source--exclude$sourceserver.log fi fi
#unzip-d/logicaldoc-6.7-tomcat-bundle.zip
出现以上的信息,说明服务已经启动成功
语言选择:中文
Name:mengtao
Email:[email protected]
Organization:mykj
Website:mykj.com
next
Repository:/data
ConnectionURL:jdbc:mysql://localhost:3306/logicaldoc
Username:logicaldoc
Password:mykj123
账户:admin
密码:admin
Logicaldoc中的账户信息是保存在Msql数据库中的,另外数据文档时保存在仓库中的/data
#!/bin/bash
#!/bin/bash