删除原有的OracleJdk1.7 安装openJdk1.8
rpm -qa | grep java
rpm -e --nodeps java-1.7.0-openjdk-1.7.0.171-2.6.13.0.el7_4.x86_64
rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.171-2.6.13.0.el7_4.x86_64
yum search java|grep jdk
yum install -y java-1.8.0-openjdk-devel.x86_64
安装redis
tar -zxvf source.tar.gz
cd source
make
vim redis.conf
安装rabbitMQ
vim /etc/yum.conf
exclude=kernel*
exclude=centos-release*
exclude=initscripts
yum update -y
源码安装erlang
源码安装rabbit
源码安装
yum erlang
rabbit安装问题
https://github.com/rabbitmq/erlang-rpm
https://www.rabbitmq.com/install-rpm.html
https://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/7/rabbitmq-server-3.8.1-1.el7.noarch.rpm
#安装erlang
这里贼头痛,后来使用epel源,然后使用yum安装epel,千万不能用rpm
安装nginx
yum install -y nginx
yum源
[base]
name=CentOS-$releasever - Base
baseurl=https://mirrors.aliyun.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.aliyun.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.aliyun.com/centos/7/extras//$basearch/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.aliyun.com/centos/7/centosplus//$basearch/
gpgcheck=1
enabled=0
网友评论