리눅스 썸네일형 리스트형 [명령어] 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/messagestail -f /var/log/messages$ tail -f /var/log/messagesDec 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-24 system.. 더보기 Apache에서 http를 https(SSL)로 리다이렉트하는 방법 Apache에서 http를 https(SSL)로 리다이렉트하는 방법rewrite 모듈 활성화LoadModule rewrite_module modules/mod_rewrite.sovim httpd.confLoadModule rewrite_module modules/mod_rewrite.so모듈 확인httpd -Mhttpd -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-vhosts.conf ServerAdmin webma.. 더보기 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는 파일 및 디렉토리를 빠르고 효율적으로 동기화하는 대표적인 Linux 명령어입니다.기본적으로 SSH를 통해 안전하게 원격 서버와 데이터를 전송할 수 있으며 변경된 파일만 복사하기 때문에 백업, 배포, 서버 간 파일 이전 작업에 자주 사용됩니다.rsync 기본 특징SSH 기반 암호화 통신 지원변경된 파일만 전송 (증분 복사)파일 권한, 소유자, 시간 정보 유지 가능대용량 데이터 동기화에 효율적로컬 ↔ 원격 / 원격 ↔ 로컬 모두 가능기본적인 구문Push (로컬 → 원격 서버)rsync [OPTION] SRC [USER@]HOST:DESTPull (원격 서버 → 로컬)rsync [OPTION] [USER@]HOST:SRC DEST자주 사용하는.. 더보기 이전 1 ··· 131 132 133 134 135 136 137 ··· 200 다음