yum clean all && yum -y install
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gnome-vfs2 lrzsz wget vim*
yum -y update glibc glibc-common glibc-devel glibc-headers nscd gnutls kernel-tools kernel-tools-libs python-perf nettle kernel kernel-devel kernel-headers bind-libs-lite bind-license
檢視系統主機命名
hostname
修改主機名稱
vim /etc/hostname
編輯host
vim /etc/hosts
啟動乙個服務:
systemctl start firewalld.service
關閉乙個服務:
systemctl stop firewalld.service
重啟乙個服務:
systemctl restart firewalld.service
顯示乙個服務的狀態:
systemctl status firewalld.service
在開機時啟用乙個服務:
systemctl enable firewalld.service
在開機時禁用乙個服務:
systemctl disable firewalld.service
檢視服務是否開機啟動:
systemctl is-enabled firewalld.service
檢視已啟動的服務列表:
systemctl list-unit-files|grep enabled
檢視啟動失敗的服務列表:
systemctl --failed
Fabric部署環境初始化 Centos 7
開放埠 firewall cmd zone public permanent add port 5984 tcp add port 7050 tcp add port 7051 tcp add port 7052 tcp add port 7053 tcp add port 7054 tcp add...
centos7初始化指令碼
centos7初始化指令碼 新裝的虛擬機器或者linux伺服器的初始化指令碼 功能 永久關閉防火牆,selinux 安裝常用工具 配置靜態ip位址 配置阿里源 usr bin bash centos初始化指令碼 time 2020 04 01 防火牆設定 echo 關閉防火牆和selinux sys...
centos7系統初始化
echo arp引數,檢查一次相鄰層記錄的有效性的週期。當相鄰層記錄失效 etc sysctl.conf echo e net.ipv4.neigh.default.gc stale time 120 n etc sysctl.conf echo 路由設定 etc sysctl.conf echo ...