본문 바로가기

728x90

리눅스

CentOS 7에서 SELinux를 비활성화하는 방법(selinux disabled) CentOS 7에서 SELinux를 비활성화하는 방법(selinux disabled)SELinux는 CentOS의 기본 보안 기능 중 하나입니다. 하지만 때로는 특정 애플리케이션이나 설정에서 SELinux를 비활성화해야 할 때도 있습니다. 이를 위해 다음과 같은 단계를 따를 수 있습니다.1. SELinux 상태 확인현재 SELinux의 상태를 확인합니다.sestatus위 명령을 실행하면 현재 SELinux 상태가 enforcing, permissive, disabled 중 하나로 나타납니다.enforcing : SELinux가 활성화되어 있고 보안 정책을 강제로 적용합니다.permissive : SELinux가 활성화되어 있지만 보안 정책을 적용하지 않습니다. 대신 정책 위반에 대한 경고 메시지가 로그에.. 더보기
ntpstat 명령어 ntpstat 명령어ntpstat는 NTP(Network Time Protocol) 동기화 상태를 간단히 확인할 수 있는 유용한 명령어입니다. 주로 NTP 서버 또는 클라이언트의 동기화 여부, 시간 오차 등을 빠르게 점검할 때 사용됩니다.ntpstat 설치dnf install -y ntpstatntpstat --versionntpstat 실행ntpstat성공적인 동기화 상태synchronised to NTP server (203.248.240.140) at stratum 4 time correct to within 22 ms polling server every 1024 ssynchronised to NTP server : 특정 NTP 서버(203.248.240.140)와 동기화됨.stratum .. 더보기
[명령어] which, whereis, locate 명령어 which, whereis, locate 명령어 - 명령어 위치을 찾는 명령어 which 명령어 : 명령의 전체 경로를 보여준다 $ which ls alias ls='ls --color=auto' /usr/bin/ls $ which ifconfig /usr/sbin/ifconfig whereis 명령어 : 명령의 실행파일, 소스, 매뉴얼 페이지가 어디 있는지 보여준다. $ whereis ls ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz $ whereis ifconfig ifconfig: /usr/sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz ###실행 파일만 찾는다 $ where.. 더보기
[리눅스] CentOS7에서 시스템 메시지 로그 필터링 CentOS7에서 시스템 메시지 로그 필터링 Environment $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) Issue /var/log/messages tail -f /var/log/messages $ tail -f /var/log/messages Dec 18 12:15:01 bvm-24 systemd: Started Session 6988 of user root. Dec 18 12:20:01 bvm-24 systemd: Started Session 6989 of user root. Dec 18 12:25:01 bvm-24 systemd: Started Session 6990 of user root. Dec 18 12:25:40 bvm.. 더보기
[Apache] 웹서버에서 http를 https(SSL)로 리다이렉트하는 방법 웹서버에서 http를 https(SSL)로 리다이렉트하는 방법 rewrite 모듈 활성화 LoadModule rewrite_module modules/mod_rewrite.so ###httpd.conf $ vim httpd.conf LoadModule rewrite_module modules/mod_rewrite.so 모듈 확인 httpd -M $ httpd -M | egrep -i rewrite rewrite_module (shared) 가상호스트 설정 httpd-vhosts.conf 편집 RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] $ vim httpd-vhos.. 더보기
CentOS End of Lifetime (EOL) Dates CentOS End of Lifetime (EOL) Dates CentOS 수명 종료 날짜 RHEL 9 계획 가이드 RHEL의 복제로서 CentOS는 사라진다. CentOS Stream은 검증용이므로 안정성이 떨어질 수 있다. CentOS Stream은 RHEL의 베타 테스트 플랫폼이 아니다. Fedora는 RHEL의 메이저 릴리즈를 테스트하는 역할이고, CentOS Stream은 RHEL 마이너 릴리즈에 초점을 둔다. 발췌(RHEL 클론 '센트OS' 사라진다) : https://zdnet.co.kr/view/?no=20201209151925 참고URL - Red Hat Customer Portal : https://access.redhat.com/documentation/ko-kr/red_hat_ent.. 더보기
HP 서버 스토리지 정보 확인(raid) HP 서버 스토리지 정보 확인(raid) Smart Storage Administrator (ssacli) 패키지명 : ssacli-4.21-7.0.x86_64.rpm Array Configuration Utility(acucli) 패키지명 : hpssacli-2.40-13.0.x86_64.rpm 패키지 설치 yum install -y ssacli-4.21-7.0.x86_64.rpm 컨트롤러 명령어 컨트롤러 정보 확인 명령어 컨트롤러의 정보 표시 hpssacli ctrl all show config $ hpssacli ctrl all show config Smart Array P410i in Slot 0 (Embedded) (sn: 5001412324380123E5) Port Name: 1I Port N.. 더보기
[Apache] 아파치 액세스 로그 설정 아파치 액세스 로그 설정 아파치 설정(httpd.conf) 편집 - vcombined 추가 $ vim /usr/local/apache2/conf/httpd.conf ... # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t %v:%p \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %Ts %Dμs" vcombined LogFormat "%.. 더보기

728x90
반응형