摘要:
#查看主机名 host=$(hostname) # 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文 localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8 echo 'LANG 阅读全文
摘要:
#设置主机名 hostnamectl set-hostname oracle #yum安装 yum -y install unzip vim* bash-completion bash-completion-extras nmap tree dos2unix nc wget lsof tcpdump 阅读全文
摘要:
#关闭防火墙 systemctl stop firewalld systemctl status firewalld systemctl disable firewalld #关闭SElinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/ 阅读全文