安装openJdk
1 2
| # 必须安装带devel版本(完整jdk) yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64
|
安装nginx
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| # 安装源 # rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm # 安装 yum install -y nginx # 启动 systemctl start nginx.service #开机启动 systemctl enable nginx.service
|
目前在官网下载低于jdk1.8的java jdk的时候需要登陆,这边分享一个账号,方便下载
2696671285@qq.com
密码:Oracle123
安装 redis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| # 下载,编译 wget http://download.redis.io/releases/redis-5.0.7.tar.gz tar xzf redis-5.0.7.tar.gz cd redis-5.0.7 make
# cp src/redis-server /usr/bin/ cp src/redis-cli /usr/bin/
# 开启服务器 src/redis-server
# 开启客户端 src/redis-cli
|