본문 바로가기

전체 글

(21)
[apache] httpd.conf log 일별 저장 설정 및 적용 [root@svr conf]# vi httpd.conf # 에러로그 일별 저장 ErrorLog "|/usr/local/apache2.2/bin/rotatelogs /usr/local/apache2.2/logs/error_log_%Y%m%d 86400" # 엑세스 로그 일별 저장 CustomLog "|/usr/local/apache2.2/bin/rotatelogs /usr/local/apache2.2/logs/access_log_%Y%m%d 86400" combined # 저장 후 닫기 :wq! # logs 설정 ./apachectl graceful : 서버 restart 없이 설정 정보만 갱신 적용 ./apachectl restart : 서버 재시작 ./apachectl stop : 중지 ./apache..
[webtob] WebtoB 환경파일 컴파일, 기동 및 종료 ▶ 컴파일 명령 : wscfl -i http.m ※ 참고 옵션 wscfl [-v] | [-i [-n ]] | [-o ] | [-b] | [-h] 더보기 ◆ wscfl 의 옵션 ● -i : 컴파일 대상이 되는 환경파일 이름을 지정한다. ● -n : node_name 에 해당하는 노드의 환경 설정만 컴파일 하고자 할 경우 -i 옵션과 함께 사용한다. ● -o : 컴파일을 통해 만들어질 이진(Binary) 환경파일 이름을 지정한다. 지정하지 않으면 default 로 ‘wsconfig’라는 이름의 파일이 만들어진다. ● -b : 설정파일을 backup 한다. ● -v : WebtoB 의 Version 을 확인한다. ● -h : wscfl 의 도움말을 보여준다. ▶ 기동 및 종료 : - 기동 : wsboot - ..
[nginx ssl 설정] nginx ssl 설정 및 경고 메세지 처리 ssl 설정 server { listen 80; listen 443; server_name 도메인; ssl on; ssl_certificate /etc/nginx/conf.d/ssl/파일명_crt.pem; ssl_certificate_key /etc/nginx/conf.d/ssl/파일명_key.pem; ssl_session_timeout 5m; ssl_protocols TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHERSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_prefer_server_ciphers on; #ac..
[Linux 사용자 관리 명령] useradd, usermod 및 userdel 명령 계정 만들기 계정 수정 계정 삭제 useradd usermod userdel useradd명령에 대한 설정 은 /etc/defaults/useradd파일에 저장됩니다. # usermod다음 명령 을 사용하여 사용자 계정을 잠금/해제. #> usermod --lock test1 (잠금) #> usermod --unlock test1 (해제) test1 사용자 계정을 데모 그룹에 추가하고 다른 그룹에서 test1 의 구성원 자격을 유지 하려면 다음을 입력하십시오. --append (-a 줄임) , --groups (-G 줄임) #> usermod --append --groups demo test1 또는 #> usermod -a -G demo test1 # 사용자 삭제 : userdel #> userdel t..
[TLS버전확인] openssl s_client 명령어로 ssl 및 tls 체크 현재 openssl 버전확인 # openssl version => OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022) # tls 확인 명령어 openssl s_client -connect domain:port openssl s_client -connect ip:port openssl s_client -connect domain:port -tls1_3 openssl s_client -connect domain:port -tls1_2 openssl s_client -connect domain:port -tls1_1 openssl s_client -connect domain:port -tls1 예) www.google.com:443 (구글 테스트) op..
[CentOS7] 기존 mysql제거 및 mysql8버전 설치, 환경설정, 대소문자 구분없이 1. 기존 mysql제거 # 설치된 mysql 정보 확인 : yum list installed | grep mysql yum list installed | grep mysql mysql-community-client.x86_64 8.0.30-1.el7 @mysql80-community mysql-community-client-plugins.x86_64 8.0.30-1.el7 @mysql80-community mysql-community-common.x86_64 8.0.30-1.el7 @mysql80-community mysql-community-icu-data-files.x86_64 8.0.30-1.el7 @mysql80-community mysql-community-libs.x86_64 8.0.30-1..
[IntelliJ] 콘솔(Console log)창 한글깨짐 [IntelliJ] 콘솔창 한글깨짐 : File > Settings ( 단축키 : Ctrl+alt+s ) # Settings 패널에서 Editor > File Encodings 1. Global Encoding: UTF-8 2. Project Encoding: UTF-8 # help > Edit Custom VM Options # 다음 에디터에 나타난 vmoptions 편집화면에서 "-Dfile.encoding=UTF-8" 입력 후 저장 # 인텔리제이 재시작 해서 다시 console 로그 확인.... (다국어들이 깨짐없이 출력됨)
[리눅스명령어] 사용자 목록확인 (How to List Users in Linux) 전체 사용자 목록 # cat /etc/passwd # cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin ... root useradd 또는 adduser를 통해 생성한 사용자 계정 # grep /bin/bash /etc/passwd # grep /bin/bash /etc/passwd root:x:0:0:root:/root:/bin/bash nb:x:1000:1000:agent-account:/home/nb:/bin/bash 아이디만 보여주기 옵션 cut -f1 -d: # cut -f1 -d: /etc/passwd root bin adm mail ..