centos 7 安装 docker
安装 docker
yum install docker
启动并开机自启docker
systemctl start docker.service
systemctl enable docker.service
安装docker-compose
pip install docker-compose
安装 JDK
wget
http://111.1.14.201/files/6036000006C14836/download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm
# 使用 RPM 包
rpm -i xx.rpm
安装 GIT
yum install git-core
安装 MAVEN
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 客户端
yum install ftp
安装 rz
yum -y install lrzsz
安装 nginx
wget https://raw.githubusercontent.com/helloxz/nginx-cdn/master/nginx.sh && bash nginx.sh
安装 redis
# 安装
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服务器