LINUX
리눅스 보안기능, 네트워크
@layers9
2025. 5. 6. 12:33
DB를 다루는데도 보안 설정이 중요하다.
(연결 설정)통신 설정 관련된 것들을 접하다 보니
보안과 관련된 설정들에 대해 궁금해졌다.
1. Selinux : 리눅스의 보안 기능
gedit /etc/sysconfig/selinux > ...
grubby --update-kernel ALL --args selinux=0
#selinux 상태 확인 >> sestatus=>disabled
2. 네트워크 설정 파일
cd /etc/NetworkManager/system-connections/
nano ens160.nmconnection
#설정 내용 적용 후 리부트 >>
nmcli connection down ens160
nmcli connection up ens160
reboot
#인터넷 접속유무 확인 >> ping -c 5 www.google.com
www.google.com
3. system reboot
shutdown -r now
reboot
init 6
4. system off
poweroff
shutdown -p now ~옵션있음
halt -p
init 0
5. 로그아웃 : 현 유저의 시스템 접속을 끊음
logout
exit