[linux] seeddms部署,docker环境启动


本文总阅读量

1、安装基础工具,下载软件安装包

1
yum install vim wget gcc net-tools sudo numactl initscripts -y
1
2
3
4
5
mkdir -p /data/soft && cd /data/soft
wget https://jaist.dl.sourceforge.net/project/seeddms/seeddms-5.1.10/seeddms-quickstart-5.1.10.tar.gz
wget https://jaist.dl.sourceforge.net/project/seeddms/seeddms-5.1.10/SeedDMS_Core-5.1.10.tgz
wget https://jaist.dl.sourceforge.net/project/seeddms/seeddms-5.1.10/SeedDMS_Lucene-1.1.13.tgz
wget https://jaist.dl.sourceforge.net/project/seeddms/seeddms-5.1.10/SeedDMS_Preview-1.2.10.tgz

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
2
3
4
5
6
[root@node3 soft]# pear install SeedDMS_Core-5.1.10.tgz
install ok: channel://pear.php.net/SeedDMS_Core-5.1.10
[root@node3 soft]# pear install SeedDMS_Lucene-1.1.13.tgz
install ok: channel://pear.php.net/SeedDMS_Lucene-1.1.13
[root@node3 soft]# pear install SeedDMS_Preview-1.2.10.tgz
install ok: channel://pear.php.net/SeedDMS_Preview-1.2.10

7、创建mysql数据库

mysql -u root -p

1
2
3
4
create database db_dms;
grant all privileges on db_dms.* to 'dms'@'%' identified by 'dms';
flush privileges;
source /var/www/html/dms/seeddms/install/create_tables-innodb.sql

8、修改php配置文件

vim /etc/php.ini
date.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
2
3
http://<宿主机ip>/dms/seeddms
用户名:admin
密码:admin
目录
  1. 1. 1、安装基础工具,下载软件安装包
  2. 2. 2、解压quickstart安装包
  3. 3. 3、安装php
  4. 4. 4、安装mysql数据库
  5. 5. 5、yum方式安装apache
  6. 6. 6、将解压出来的文件拷贝到apache目录下
  7. 7. 7、创建mysql数据库
  8. 8. 8、修改php配置文件
  9. 9. 9、创建mysql连接
  10. 10. 10、修改配置文件/var/www/html/dms/conf/settings.xml
  11. 11. 11、下面是本人制作的docker镜像,可下载直接使用

Proudly powered by Hexo and Theme by Lap
本站访客数人次
© 2020 zeven0707's blog