Fedora-27-install-Nextcloud-配置安装Nextcloud

dnf update -y
#安装nextcloud
dnf install -y nextcloud-nginx.noarch nextcloud.noarch
#安装数据库 mariadb
dnf install -y mariadb mariadb-server

###############################
dnf install -y nginx php-fpm php php-gd php-mysql php-sqlite sqlite3

#启动
systemctl start nginx php-fpm mariadb
#开机默认启动
systemctl enable nginx php-fpm mariadb

#初始化数据库配置
#获取随即字符串作为密码
firewall-cmd --add-service={http,https}
firewall-cmd --add-service={http,https} --permanent

head -c 500 /dev/urandom | tr -dc a-z0-9A-Z | head -c 10
/usr/bin/mysql_secure_installation

firewall-cmd --add-service=http
firewall-cmd --add-service=http --permanent

http://*.*.*.*/nextcloud

#填写相应的信息就可以了