centos7.6安装配置owncloud10.3云网盘。
centos7.6安装配置owncloud10.3云网盘。
注意系统最低centos7.5,最新本最好了。
apache2.4,php7.2,mariadb. 下面最具体安装步骤。
[root@k8s-master ~]# cd /etc/yum.repos.d/
[root@k8s-master ~]# wget https://mirrors.aliyun.com/ius/ius-7.repo
[root@k8s-master ~]# wget https://mirrors.aliyun.com/ius/ius-archive-7.repo
[root@k8s-master ~]# yum
install php72u-cli php72u-common php72u-devel php72u-mysql php72u-xml
php72u-odbc php72u php72u-mysqlnd mariadb-server mariadb sqlite
php72u-dom php72u-mbstring php72u-gd php72u-pdo httpd24u php72u-pecl-redis
[root@k8s-master ~]# systemctl enable httpd
[root@k8s-master ~]# systemctl start httpd
[root@k8s-master ~]# cd /var/www/html/
[root@k8s-master ~]# wget https://download.owncloud.org/community/owncloud-10.3.0.zip
[root@k8s-master ~]# yum install unzip
[root@k8s-master ~]# unzip owncloud-10.3.0.zip
[root@k8s-master ~]# chown -R apache:apache /var/www/html/
[root@k8s-master ~]# yum
install php72usamba recode php72u-intl php72u-bcmath php72u-soap
php72u-xmlrpc php72u-opcache php72u-ldap php72u-json php72u-gmp
[root@k8s-master ~]# yum
install php72usamba recode php72u-intl php72u-bcmath php72u-soap
php72u-xmlrpc php72u-opcache php72u-ldap php72u-json php72u-gmp
php72u-zlib
[root@k8s-master ~]# yum install zlib zlib-devel zip libxml openssl
[root@k8s-master ~]# yum
install php72usamba recode php72u-intl php72u-bcmath php72u-soap
php72u-xmlrpc php72u-opcache php72u-ldap php72u-json php72u-gmp
php72u-gd
[root@k8s-master ~]# yum install zlib zlib-devel zip libxml openssl gd iconv
[root@k8s-master ~]# yum install zlib zlib-devel zip libxml openssl gd iconv php72u-ctype
[root@k8s-master ~]# yum install zlib zlib-devel zip libxml openssl gd iconv php72u-ctype
[root@k8s-master ~]# systemctl restart httpd
配置mariadb数据库
[root@k8s-master ~]# systemctl restart mariadb
[root@k8s-master ~]# systemctl enable mariadb
[root@k8s-master ~]# mysql_secure_installation
[root@k8s-master ~]# mysql -uroot -p
通过web地址安装软件。我这里是 http://192.168.137.17/owncloud
安装好web程序后,再配置redis,https等。
启动redis服务命令:
yum install redis
systemctl enable redis --now
最后需要修改owncloud的配置文件。
//打开config.php文件vim /var/www/html/owncloud/config/config.php//在结尾之前添加下面的redis配置信息'memcache.local' => '\OC\Memcache\Redis',//加这一句是为了使用Redis来管理事务文件锁定,这样就不会出现“事务文件锁定应配置为使用内存的锁定...”的问题'memcache.locking' => '\OC\Memcache\Redis','redis' => array('host' => 'localhost','port' => 6379,),
//然后保存退出
进入owncloud管理页面,不会再提示 “事务文件锁定应配置为使用基于内存的锁定,而不是默认的基于慢速数据库的锁定”
目录 返回
首页