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,
),
上一篇
vsphere 即时克隆
用途vsphere6.7即以上的instant clone,使用脚本进行设置属于能用就行的东西,不想优化
环境conda create -n vsphere python=3.7
source activate vsphere
or
2020-08-13
下一篇
extend hdd in linux with command
commanddf -lh
fdisk /dev/sda
Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide
2019-09-26