yumyum

[Linux] Centos 7 설정 본문

ICT기반 클라우드 네트워크 해킹 침해대응전문가/Linux

[Linux] Centos 7 설정

yumyum0603 2023. 8. 29. 15:06

selinux=DHCP -> selinux=disabled 로 변경

수정할때는 insert 눌러서 수정후

:wq 로 저장 (저장 안하고 끌때는 :q로 나가기)

[centos@localhost ~]$ su - 
암호:
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# vim /etc/selinux/config 
[root@localhost ~]# cat /etc/se
securetty       selinux/        sestatus.conf   setuptool.d/
security/       services        setroubleshoot/ 
[root@localhost ~]# cat /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 


[root@localhost ~]# S

guest os ip 고정

vim /etc/sysconfig/network-scripts/ifcfg-ens32

BOOTPROTO static으로 변경

ONBOOT yes로 변경

#################으로 주석깔고

IP 설정

 

:wq -> 저장

systemctl restart network 해주고

ifconfig 로 확인

ping 8.8.8.8 로 테스트

 

[ifconfig 설치]

# sudo yum update 

# sudo yum install net-tools -y (-y는 모든 질문에 y로 대답)

#ifconfig

 

[vim 설치]

# sudo yum install vim

______________________________________________________________________________________

_YUM 패키지 설치/삭제 명령

 

 

yum intall 패키지명 // 패키지 설치
yum remove 패키지명 // 패키지 삭제

 

'ICT기반 클라우드 네트워크 해킹 침해대응전문가 > Linux' 카테고리의 다른 글

[Linux] RPM, dnf  (1) 2023.08.30
[Linux] hardlink, softlink  (0) 2023.08.30
[Linux]권한설정  (0) 2023.08.30
[Linux] 그룹 생성, 유저 추가  (0) 2023.08.30
[Linux] 기본 명령어  (0) 2023.08.30