centos安装工具
mysql
官方库自带maraidb
mongodb
添加其他远程仓库,用yum下载
先创造文件 vim /etc/yum.repos.d/mongodb-org-3.4.repo
粘贴
[mongodb-org-3.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
sudo yum install mongodb-org
redis
1. 添加EPEL存储库
sudo yum install epel-release
2. 更新YUM
sudo yum update
3. 下载
sudo yum install redis
docker
$ wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker your-user
下载后操作
- 开启:sudo systemctl start servicename
- 设置开机自启:sudo systemctl enable servicename