본문 바로가기
반응형

리눅스22

[Linux] Apache(아파치) httpd.conf 기본 구성 아래는 /etc/httpd/conf/httpd.conf 파일 중 주석을 제거한 부분입니다. ServerRoot "/etc/httpd" httpd가 구성파일에서 참조된 파일을 찾는 위치 지정 (아파치 서버의 루트 디렉토리) Listen 80 모든 인터페이스의 80/tcp 포트에서 수신 대기 Include conf.modules.d/*.conf ServerRoot 에 상대적으로 파일의 경로를 지정하여 포함시킬 수 있다. User apache root권한이 필요한 모든 작업 후 해당 유저, 그룹으로 작업 수행Group apache ex) 자식 프로세스가 생성될때 해당 프로세스의 소유자와 소유 그룹은 apache 이다. ServerAdmin root@localhost httpd 오류 관련 메일을 받을 수 있는 .. 2018. 10. 29.
[Linux] 주석 없는 라인만 보고싶다면? grep -v 명령어 특정 텍스트파일 혹은 설정 파일등을 확인할 때 주석이 많아 보기가 불편했던 경험은 누구나 한 두번쯤 있지 않을까? 아래는 httpd.conf의 일부분이다.# ServerRoot: The top of the directory tree under which the server's# configuration, error, and log files are kept.## Do not add a slash at the end of the directory path. If you point# ServerRoot at a non-local disk, be sure to specify a local disk on the# Mutex directive, if file-based mutexes are used. If you.. 2018. 10. 26.
[Linux] rsyslog 설정 및 관리 유닉스 시스템은 (r)syslog 표준 인터페이스를 통해 커널 및 응용 프로그램에 의해 발생하는 로그를 체계적으로 생성하고 관리한다. 커널 및 응용 프로그램이 (r)syslog API를 통해 로그를 생성하면 (r)syslogd 데몬 프로세스가 (r)syslog.conf 설정 파일을 참조하여 지정한 로그 파일, 콘솔 또는 외부 서버 등에 로그를 기록한다. /etc/(r)syslog.conf 파일은 시스템 로그 데몬이 실행될 때 참조되는 로그 설정 파일로서 어떤 로그를 어디에 남길지 로그 저장 규칙이 정의되어 있다. 포맷은 아래와 같다. facility.priority; facility.priority; facility.priority; A . B A . B A . B ··· ···action(logfile.. 2018. 10. 26.
[CentOS7 / RHEL 7] systemd : start session ## of user root 해결방법 CentOS7 혹은 RHEL7 이상 버전부터 /var/log/messages 에 아래와 같은 메시지가 넘쳐나는걸 흔히 볼 수 있을것이다. # cat /var/log/messages Oct 19 14:00:01 localhost systemd: Started Session 13 of user root.Oct 19 14:00:01 localhost systemd: Starting Session 13 of user root.Oct 19 14:01:01 localhost systemd: Started Session 14 of user root.Oct 19 14:01:01 localhost systemd: Starting Session 14 of user root.---------------------------.. 2018. 10. 23.
반응형