티스토리 뷰
19년 11월 기준.
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
ONBOOT=yes
systemctl restart network
// 네트워크 설정
#BOOTPROTO="dhcp"
// bootproto 주석처리
BOOTPROTO="static"
IPADDR="192.168.0.200"
GATEWAY="192.168.0.1"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
// ip 설정
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
// nameserver 추가
yum install net-tools
// ifconfig, netstat 실행 위해 net-tools 설치
vi /etc/sysconfig/selinux
SELINUX=disabled
// selinux disabled
sestatus
// selinux 확인
setenforce 0 // 0 종료. 1 실행.
getenforce // Permissive 종료 경고 출력. 재부팅해야 Disabled 확인 가능.
yum update
yum install epel-release
// yum 업데이트 및 epel 설치
systemctl status firewalld
systemctl list-unit-files | grep fire
// firewalld 상태 확인
systemctl stop firewalld
systemstl mask firewalld
systemctl disable firewalld
// // iptable 룰이 생성됨. 비활성화 및 중지
yum install iptables-services
systemctl enable iptables
systemctl start iptables
iptables --flush
iptables-save > /etc/sysconfig/iptables
// 패키지 설치
timedatectl
yum install ntpd
systemctl start ntpd
systemctl enable ntpd
// 시간동기화
timedatectl list-timezones
timedatectl set-timezone Asia/Seoul
// 타임존 설정
nmcli d
// 네트워크 확인
vi /etc/sysconfig/network-scripts/ifcfg-eth0
// 네트워크 설정
nmtui
// UI 네트워크 설정
ip address
// ip 확인
history -c
// 히스토리 삭제. 현재 콘솔.
cat /dev/null > ~/.bash_history
// 저장된 히스토리 전체 삭제.
CentOS 7 rc.local 부팅시 자동실행
chmod u+x /etc/rc.d/rc.local
systemctl start rc-local
// 부팅시 실행되도록 설정. 권한 추가. reboot해도 적용됨. rc.local대신 rc-local
/usr/local/src or /usr/local/etc
// 해당 경로에 wget
/usr/local
// 해당 경로에 설치
로컬 시스템 관리자에게 일반적인 지침을 받았으리라 믿습니다.
보통 세가지로 요약합니다:
#1) 타인의 사생활을 존중하십시오.
#2) 입력하기 전에 한 번 더 생각하십시오.
#3) 막강한 힘에는 상당한 책임이 뒤따릅니다.
// sudo 첫 실행 시 경고 메세지.
'Study' 카테고리의 다른 글
| freemarker(프리마커) 관련 (0) | 2024.01.21 |
|---|---|
| maria DB(마리아 디비) 관련 (0) | 2024.01.21 |
| ACDSee(에이씨디씨) 관련 (0) | 2024.01.21 |
| MediaWiki(미디어위키) 관련 (0) | 2024.01.21 |
| Linux(리눅스) lsof 명령어 없을 때 해당 포트, PID 확인 (0) | 2024.01.21 |