OS/Linux49 yum / update / 자동 업데이트 yum -y install yum-cron systemctl enable yum-cron systemctl restart yum-cron 설정파일 vi /etc/yum/yum-cron.conf .. [email] # The address to send email messages from. # NOTE: 'localhost' will be replaced with the value of system_name. email_from = root@localhost # List of addresses to send messages to. email_to = root # Name of the host to connect to to send email messages. email_host = localhost .. 2020. 4. 17. ssh / port 수정 sshd port 수정 [CentOS 6.x] vi /etc/ssh/sshd_config Port 포트번호 service sshd restart 방화벽 해당port추가 vi /etc/sysconfig/iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport 포트번호 -j ACCEPT service iptables restart [CentOS 7.x] vi /etc/ssh/sshd_config ... #Port 22 Port 새로운 포트번호 ... service sshd restart 방화벽 해당port추가 firewall-cmd --permanent --zone=public --add-port=5050/tcp 방화벽 재시작 firewall-cmd --rel.. 2020. 4. 17. Centos 7 / network config CLI Centos 7 / network config CLI [root@Server]# nmtui [root@Server]# [root@Server]# service network restart [root@Server]# 2020. 4. 16. CentOS 설치 후 기본작업내용 1. yum 자동업데이트 yum -y update yum -y install yum-cron systemctl enable yum-cron systemctl restart yum-cron vi /etc/yum/yum-cron.conf ... apply_updates = yes ... 서비스 목록 확인 systemctl list-unit-files --type=service 해당서비스의 상태확인 systemctl status sshd.service 부팅시 실행되는 서비스인지 확인(ex : sshd) systemctl is-enabled sshd -------- Cent OS 8 [root@nginx audit]# yum -y install dnf-automatic [root@nginx audit]# dnf.. 2019. 4. 15. 이전 1 ··· 9 10 11 12 13 다음 반응형