centos 7 安装 docker

  1. 安装 docker
1
yum install docker
  1. 启动并开机自启 docker
1
2
systemctl  start docker.service
systemctl enable docker.service

centos 安装 docker

安装 docker-compose

1
pip install docker-compose

安装 JDK

1
2
wget
http://111.1.14.201/files/6036000006C14836/download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm
1
2
# 使用 RPM 包
rpm -i xx.rpm

安装 GIT

1
yum install git-core

安装 MAVEN

1
2
3
4
wget
http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
-O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven

安装 ftp 客户端

1
yum install ftp

安装 rz

1
yum -y install lrzsz

安装 nginx

1
wget https://raw.githubusercontent.com/helloxz/nginx-cdn/master/nginx.sh && bash nginx.sh

安装 redis

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 安装
sudo yum -y install redis
# 启动
sudo systemctl start redis
# 修改配置
vi /etc/redis.conf
# 注释本地访问
#bind 127.0.0.1
# 设置密码
requirepass 密码
# 其它常用命令
systemctl start redis.service #启动redis服务器
systemctl stop redis.service #停止redis服务器
systemctl restart redis.service #重新启动redis服务器
systemctl status redis.service #获取redis服务器的运行状态
systemctl enable redis.service #开机启动redis服务器
systemctl disable redis.service #开机禁用redis服务器

本文地址 https://blog.coder4j.cn/posts/37c69c79/