在centos6.10上安装Nextcloud 11 How to install Nextcloud11 on Centos 6.10

1.centos的初始化安装我就不多说了,直接安装需要的软件包

yum install -y httpd mysql mysql-server wget
yum install -y unzip

2.这步由于连国外网络,会比较慢。


rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install -y php56w php56w-pdo php56w-dom php56w-gd php56w-mb php56w-mbstring php56w-mysql php56w-process

3.把selinux=enforce改成disables

vi /etc/sysconfig/selinux
cat /etc/sysconfig/selinux | grep SELINUX

4.重启一下,把防火墙和服务该禁用禁用,改开机启动开机启动。

reboot
service iptables stop
service httpd start
ifconfig
service iptables stop
service httpd start
service mysqld start
chkconfig httpd on
chkconfig mysqld on
chkconfig iptables off

5.进数据库去新建一个新数据库

mysql_secure_installation
mysql -uroot -p

(1)新建数据库nextcloud

create database nextcloud

6.nextcloud安装包有点难下载,挂迅雷吧,如果wgetdownload不下来的话。

cd /var/www/html/
wget https://download.nextcloud.com/server/releases/nextcloud-11.0.0.zip
unzip nextcloud-11.0.0.zip
chown -R apache:apache /var/www/html/nextcloud

7.局域网通过IP进去,输入密码、选择连接的数据库。这个看着填就好。

http://你的IP/nextcloud

8.结束了。

猜你喜欢

转载自www.cnblogs.com/wadelin/p/12401210.html