nextcloud


sudo yum install -y yum-utils device-mapper-persistent-data lvm2;
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo;
yum install epel-release;
sudo yum makecache fast;
sudo yum update;
sudo yum install -y docker-ce;
sudo systemctl start docker;

docker run -d -p 80:80 -v `pwd`:/var/www/html --restart=always nextcloud
docker run --name postgres1 -e POSTGRES_PASSWORD='password' -p 5432:5432 -d postgres

apt-get update -y;
apt-get install postgresql redis-server;
systemctl start postgresql;
systemctl start redis-server;
service postgresql restart;
service redis-server restart;

su - postgres
CREATE USER dbuser WITH PASSWORD 'dbuser';
CREATE DATABASE dbuser OWNER dbuser;
GRANT ALL PRIVILEGES ON DATABASE dbuser TO dbuser;


#add redis
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
),

文章作者: xyzz
文章链接: http://www.xyzzpwn.top
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 xyzz !
  目录