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. 關(guān)閉防火墻和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. 修改主機(jī)名和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

七、時區(qū)

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

八、中文

yum groupinstall chinese-support
vi /etc/sysconfig/i18n
LANG="zn_CN.UTF-8"
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容