新开Centos7配置yum源、selinux、ulimit

mv CentOS-Base.repo CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

yum install -y epel-release

systemctl stop firewalld
systemctl disable firewalld

setenforce 0

sestatus
vi /etc/sysconfig/selinux
SELINUX=disabled

ulimit -n
ulimit -n 65535
vim /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535

你可能感兴趣的:(linux,服务器,centos)