美文网首页
服务器环境配置

服务器环境配置

作者: MathCEC | 来源:发表于2019-10-31 20:25 被阅读0次

删除原有的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

解决YUM UPDATE LINUX内核 冲突

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

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

相关文章

网友评论

      本文标题:服务器环境配置

      本文链接:https://www.haomeiwen.com/subject/fqtavctx.html