회사에서 테스트를 위해 cygwin을 깔아서 이것 저것 테스트를 진행해 봤다.
유틸리티나 컴파일 등은 아무런 문제없이 잘 되는데 유독 서버 프로그램들(FTP, HTTP) 등은 잘 동작하지 않는 것을 확인했다.
분명 설치되어 있는 걸 보면 동작은 할텐데...
싸이트를 뒤지다 보니 별도의 서버를 돌려야지만 이러한 서버 프로그램이 동작한다는 것을 알게 되었다.
1. 설정파일 변경(/etc/proftpd.conf)
# Set the user and group under which the server will run.
User SYSTEM
Group Administrators
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
User SYSTEM
Group Administrators
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
2. 서버를 서비스로 기동
cygrunsrv --install proftpd \
--path /usr/sbin/proftpd.exe \
--args "--nodaemon" \
--type manual \
--disp "CYGWIN proftpd" \
--desc "ProFTPd FTP daemon"
--path /usr/sbin/proftpd.exe \
--args "--nodaemon" \
--type manual \
--disp "CYGWIN proftpd" \
--desc "ProFTPd FTP daemon"
3. 서버 시작
cygsrunsrv --start proftpd
이렇게 해놓고 FTP 접속해 보면 잘 접속되는 것을 알 수 있다.
'컴맹의 컴퓨터 이야기 > 개발' 카테고리의 다른 글
[팁] cygwin에서 mongo db 사용하기 (0) | 2013.08.02 |
---|---|
[팁] cygwin에서 libpcap 사용 (0) | 2013.07.08 |
[팁] 인증서 종류 및 형식 변환 (0) | 2011.07.18 |
[팁] vmware 가상드라이버 생성 (0) | 2011.07.15 |
[팁] Win7 관리자 권한 활성화 (0) | 2011.06.29 |