部署网盘

网友投稿 732 2022-05-25

0 如果之前已经安装我们先卸载一下

yum -y remove php*

1 由于linux的yum源不存在php7.x,所以我们要更改yum源

部署云网盘

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

2 yum 安装php72w和各种拓展,并启动相应服务

yum -y install httpd mariadb-server mariadb unzip php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml php72w-intl

# systemctl start php-fpm && systemctl enable php-fpm

# systemctl enable mariadb && systemctl start mariadb

# systemctl enable httpd && systemctl start httpd

3 将ownclound软件包上传至ChinaSkill-node-1实例中并解压

# ls

owncloud-complete-20200731.zip

# unzip owncloud-complete-20200731.zip

# cp -r owncloud /var/www/html/

# chown -R apache:apache /var/www/html/owncloud/

4 创建数据库

# mysqladmin -u root password "Abc@1234"

# mysql -uroot -pAbc@1234

MariaDB [(none)]> create database owncloud;

MariaDB [(none)]> grant all privileges  on *.* to root@'%' identified by "Abc@1234";

MariaDB [(none)]> grant all privileges  on *.* to root@'localhost' identified by "Abc@1234";

# systemctl restart httpd

# systemctl restart php-fpm

5 初始化owncloud

使用浏览器访问http://IP/owncloud/index.php初始化owncloud。

PHP

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:高效+安全,华为云WeLink云空间是如何在企业网盘产品中脱颖而出的?
下一篇:JavaWeb之文件上传和下载
相关文章