민서네집

[Linux] 환경변수 설정 / Service List 확인 / vsFTP 로그 남기기 / 서비스 우선순위 본문

LINUX

[Linux] 환경변수 설정 / Service List 확인 / vsFTP 로그 남기기 / 서비스 우선순위

브라이언7 2013. 12. 4. 13:46

< Linux에서 환경변수 설정하기 >


http://power3xz.blogspot.kr/2013/08/linux.html


< mysql 설치 >

rpm 의존성 관계 때문에 버전 업그래이드가 안 되는 경우, 의존성이 있는 rpm을 강제로 삭제한 후 업그래이드 된 버전으로 다시 설치함.

/etc/my.cnf 파일을 설정해서 해결함.

에러 로그 파일도 잘 봐야 함.


[CentOS 6.4] vsftp 설치 및 실행

http://blog.naver.com/chojun89/100190541641


[수동] service vsftpd start


[자동] 리눅스 재시작시 자동으로 시작되도록 설정

# chkconfig --level 2345 vsftpd on


< CentOS 에서 Service List 확인 >

http://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/


# service --status-all | grep ftp

dnsdomainname: Unknown host

vsftpd (pid 30246) is running...


vsftp에서 500 OOPS: cannot change directory 오류가 나올 때

http://opencode.co.kr/bbs/board.php?bo_table=linux_tips&wr_id=27

http://www.youtu.kr/949771

http://unix.stackexchange.com/questions/79743/what-are-the-settings-to-correct-vsftpd-500-oops-cannot-change-directory-erro

http://gomi97.tistory.com/624


< vsFTP 로그를 남기려면 >

/etc/vsftpd/vsftpd.conf 파일에 다음과 같이 설정함.


syslog_enable=YES 가 있어야 한다고 함.

https://www.centos.org/forums/viewtopic.php?t=28166


로그파일 위치:  /var/log/xferlog, /var/log/messages


pam_service_name=vsftpd

userlist_enable=YES

tcp_wrappers=YES

syslog_enable=YES

pasv_enable=YES


시스템 서비스 목록과 런레벨 0-6에서 서비스의 시작(on)또는 정지(off) 여부 조회.

http://www.fis.unipr.it/pub/linux/redhat/9++/en/doc/RH-DOCS/rhl-cg-ko-9/s1-services-chkconfig.html


chkconfig --list


2. 서비스 등록

# chkconfig --add tomcat

[출처] 리눅스에서 tomcat을 서비스에 등록하기|작성자 금잔디


tomcat 우선순위를 mysql 우선순위와 비교해 보자.


http://linuxchannel.net/board/read.php?table=qna&no=4378


http://fedoraproject.org/wiki/Packaging:SysVInitScript#LSB_Header


http://blog.chrysocome.net/2013/05/chkconfig-priorities.html

/etc/chkconfig.d/dhcp: 

### BEGIN INIT INFO

# Required-Start: vand

### END INIT INFO



Comments