1、安装基础工具,下载软件安装包
1 | yum install vim wget gcc net-tools sudo numactl initscripts -y |
1 | mkdir -p /data/soft && cd /data/soft |
2、解压quickstart安装包
tar -zxvf seeddms-quickstart-5.1.10.tar.gz
3、安装php
yum install php-mysql php-pear php-gd php-http-webdav-server php-mbstring php-pdo php-pear-Log php-ZendFramework-Search-Lucene php-pear-Image-Text php-ZendFramework-Search-Lucene -y
pear install channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC8
php版本要高于,下面升级到5.6,配置5.6yum源
追加CentOS 6.5的epel及remi源。rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
以下是CentOS 7.0的源。yum install epel-release -y
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
使用yum list命令查看可安装的包(Packege)。yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
安装PHP5.6
yum源配置好了,下一步就安装PHP5.6。yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof -y
用PHP命令查看版本。php --version
4、安装mysql数据库
(省略)
5、yum方式安装apache
yum install -y httpd
systemctl enable httpd
systemctl start httpd
6、将解压出来的文件拷贝到apache目录下
mkdir –p /var/www/html/dms
mv /data/soft/seeddms51x/* /var/www/html/dms/
chown apache:apache -R /var/www/html/dms
cd /data/soft
1 | [root@node3 soft]# pear install SeedDMS_Core-5.1.10.tgz |
7、创建mysql数据库
mysql -u root -p
1 | create database db_dms; |
8、修改php配置文件
vim /etc/php.inidate.timezone = 'Asia/Shanghai'
9、创建mysql连接
[root@node3 tmp]# mkdir -p /var/lib/mysql/
[root@node3 tmp]# ln -s /data/mysql/tmp/mysql.sock /var/lib/mysql/mysql.sock
10、修改配置文件/var/www/html/dms/conf/settings.xml
1 | <server rootDir="/var/www/html/dms/www/" httpRoot="/dms/seeddms/" contentDir="/var/www/html/dms/data/" stagingDir="/var/www/html/dms/data/staging/" luceneDir="/var/www/html/dms/data/lucene/" logFileEnable="true" logFileRotation="d" enableLargeFileUpload="false" partitionSize="2000000" cacheDir="/var/www/html/dms/data/cache/" dropFolderDir="" backupDir="" repositoryUrl="" maxUploadSize=""> |
1 | <server coreDir="" luceneClassDir="" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" extraPath="/var/www/html/dms/pear/" maxExecutionTime="30" cmdTimeout="1"> |
1 | <database dbDriver="mysql" dbHostname="localhost" dbDatabase="db_dms" dbUser="dms" dbPass="dms" doNotCheckVersion="false"> |
11、下面是本人制作的docker镜像,可下载直接使用
docker run -p 80:80 -dt zeven0707/seeddms:v1 /usr/sbin/init
(需要加上–privileged,否则启动httpd会报错Failed to get D-Bus connection: Operation not permitted)
只后进入docker启动mysql、apache/etc/init.d/mysql start
systemctl start httpd
启动完成之后,登录
1 | http://<宿主机ip>/dms/seeddms |