centos 7 安装 docker

  1. 安装 docker

    1. yum install docker
  2. 启动并开机自启docker

    1. systemctl start docker.service
    2. systemctl enable docker.service

centos 安装 docker

安装docker-compose

  1. pip install docker-compose

安装 JDK

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

安装 GIT

  1. yum install git-core

安装 MAVEN

  1. wget
  2. http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
  3. -O /etc/yum.repos.d/epel-apache-maven.repo
  4. 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. sudo yum -y install redis
  3. # 启动
  4. sudo systemctl start redis
  5. # 修改配置
  6. vi /etc/redis.conf
  7. # 注释本地访问
  8. #bind 127.0.0.1
  9. # 设置密码
  10. requirepass 密码
  11. # 其它常用命令
  12. systemctl start redis.service #启动redis服务器
  13. systemctl stop redis.service #停止redis服务器
  14. systemctl restart redis.service #重新启动redis服务器
  15. systemctl status redis.service #获取redis服务器的运行状态
  16. systemctl enable redis.service #开机启动redis服务器
  17. systemctl disable redis.service #开机禁用redis服务器