部署云网盘
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。
- 点赞
- 收藏
- 关注作者
评论(0)