CentOS安装附加软件

一、FreeIPA(需要centos7)

  1. 添加yum源:
    /etc/yum.repos.d/freeipa.repo
[mkosek-freeipa]
name=Copr repo for freeipa owned by mkosek
baseurl=https://copr-be.cloud.fedoraproject.org/results/mkosek/freeipa/epel-7-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/mkosek/freeipa/pubkey.gpg
enabled=1
  1. 关闭防火墙和selinux
systemctl stop iptables.service
systemctl disable iptables.service
systemctl stop firewalld.service
systemctl disable firewalld.service\

vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
  1. 修改主机名和hosts文件
vi /etc/hostname
vi /etc/hosts
vi /etc/resolv.conf
vi /etc/sysconfig/network
  1. 更新镜像库
yum clean all
rpm --rebuilddb
yum -y update
  1. 安装:
yum install freeipa-server bind bind-dyndb-ldap
\* Your system is running out of entropy, you may experience long delays
yum install -y haveged
systemctl start haveged.service
\* Integrated DNS requires 'ipa-server-dns' package
yum install ipa-server-dns
ipa-server-install --setup-dns --forwarder=114.114.114.114

二、MongoDB

  1. 添加yum源:
    /etc/yum.repos.d/mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB Repository  baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1

/etc/yum.repos.d/mongodb-org-2.6.repo

[mongodb-org-2.6] 
name=MongoDB 2.6 Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
  1. 安装:
yum install -y mongodb-org
systemctl start mongod.service
systemctl enable mongod.service

三、RabbitMQ

  1. 依赖安装:
yum install wget
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
rpm -ivh epel-release-7-6.noarch.rpm
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum -y update
yum install -y erlang
  1. 安装:
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server-3.6.2-1.noarch.rpm
rpm -Uvh rabbitmq-server-3.6.2-1.noarch.rpm
yum -y update
yum install rabbitmq-server-3.6.2-1.noarch.rpm
systemctl start rabbitmq-server.service
systemctl enable rabbitmq-server.service

四、Redis

yum install redis
systemctl start redis.service
systemctl enable redis.service

五、JDK

yum install java-1.7.0-openjdk

六、Node

yum install nodejs
yum install npm
npm install pm2 -g

七、时区

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

八、中文

yum groupinstall chinese-support
vi /etc/sysconfig/i18n
LANG="zn_CN.UTF-8"

你可能感兴趣的:(CentOS安装附加软件)