리눅스 썸네일형 리스트형 [명령어] 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 서버 스토리지 정보 확인 HP 서버 스토리지 정보 확인(raid)Smart Storage Administrator (ssacli)패키지명 : ssacli-4.21-7.0.x86_64.rpmArray 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 configSmart Array P410i in Slot 0 (Embedded) (sn: 5001412324380123E5) Port Name: 1I Port Name: .. 더보기 [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.. 더보기 Apache 다운로드 대역폭 속도 제한 Apache 다운로드 대역폭 속도 제한httpd.conf 편집(mod_ratelimit 모듈 활성화)vim /usr/local/apache2/conf/httpd.conf...#LoadModule data_module modules/mod_data.soLoadModule ratelimit_module modules/mod_ratelimit.soLoadModule reqtimeout_module modules/mod_reqtimeout.so#LoadModule ext_filter_module modules/mod_ext_filter.so...configuration 편집vim /usr/local/apache2/conf/extra/httpd-vhosts.conf... ServerAdmin webmaste.. 더보기 rsync를 사용하여 SSH를 통해 파일을 복사하는 방법 rsync를 사용하여 SSH를 통해 파일을 복사하는 방법rsync는 기본적으로 SSH를 지원하며, SSH를 통해 원격 호스트 간에 파일을 동기화하는 데 사용할 수 있습니다.기본적인 구문rsync -avz -e "ssh" /원본/경로/ 사용자@원격호스트:/목적지/경로/-avz: 파일을 아카이브 모드로 동기화합니다. a는 아카이브 모드, v는 자세한 출력을 보여줍니다, z는 파일 압축을 사용합니다.-e "ssh": rsync가 SSH를 통해 파일을 복사하도록 지정합니다./원본/경로/: 로컬 시스템에서 복사할 파일이나 디렉토리의 경로를 지정합니다. 사용자@원격호스트:/목적지/경로/: 원격 시스템에서 복사할 위치를 사용자명, 호스트명 및 경로를 함께 지정하여 지정합니다.실제 예를 들어, 로컬 서버의 /home/.. 더보기 이전 1 ··· 117 118 119 120 121 122 123 ··· 186 다음