Please assign a menu to the primary menu location under menu

FreeBSD

FreeBSD – FTPD

FreeBSD에서는 내장된 FTPD를 가지고 서비스를 해줄수 있습니다. 바이너리 위치는 /usr/libexec/ftpd에 있으며 실행 스크립트는 /etc/rc.d/ftpd에 있습니다.inet 방식으로 운영하시려면 /etc/inetd.conf를 수정하여 사용하면 됩니다. 아래 보이는 ftp 부분을 주석 해제 해주시면 됩니다. (IPv6 사용자는 tcp6을 해제 해주세요.) # ee /etc/inetd.conf # $FreeBSD: src/etc/inetd.conf,v 1.73.10.2.6.1 2010/12/21 17:09:25 kensmith Exp $ # # Internet server configuration database # # Define *both* IPv4 and IPv6 entries for dual-stack support. # To disable a service, comment it out by prefixing the line with ‘#’. # To enable a service, remove the ‘#’ at the beginning of the line. # ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l

FreeBSD – umount device busy

Device busy 문제 해결방안입니다. # umount /home umount: unmount of /home failed: Device busy fuser을 설치합니다. # cd /usr/ports/sysutils/fuser ; make install clean ============================================================================= Since fuser requires root privilegies to access /dev/mem file, ordinary users can’t use it. If you want to give non-priveleged users access to this utility you must set setuid bit on fuser executable: # chmod +s /usr/local/bin/fuser ============================================================================= fuser에 sticky bit 권한을 부여합니다. # chmod +s /usr/local/bin/fuser umount 하려는 디렉토리의 사용자, 프로세스를 확인합니다. (웹서버가 사용중이라면 중지 해줍니다.) # fuser -cu /home /home: 63537c(www) 63538c(www) 63539c(www) 63540c(www) 63541c(www) 63542c(www) 강제로 죽입니다. # fuser -k umount 해봅니다. #

FreeBSD – SoftUpdate

FreeBSD는 UFS(Unix File System)을 사용하는데 파일의 엑세스 타임을 줄이기 위해 Softupdate를 사용합니다. 파일 엑세스가 잦을 경우 Softupdate를 꺼두시는게.. 좋다고 판단 됨(필자 생각임..) Softupdate 적용 # tunefs -n enable /dev/ad7a Softupdate 해제 # tunefs -n disable /dev/ad7a 참고 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-disk.html#SOFT-UPDATES

FreeBSD – Error: Can’t locate Geo/IP.pm

AWstats에 GeoIP를 사용하려고 해보니.. 이런.. Geo/IP.pm 에러가 뜨는군요.. # /usr/local/awstats/tools/awstats_updateall.pl now Running ‘”/usr/local/awstats/wwwroot/cgi-bin/awstats.pl” -update -config=mirror -configdir=”/etc/awstats”‘ to update config mirror Error: Plugin load for plugin ‘geoip’ failed with return code: Error: Can’t locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/awstats/wwwroot/cgi-bin/lib /usr/local/awstats/wwwroot/cgi-bin/plugins) at (eval 4) line 1. Can’t locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/awstats/wwwroot/cgi-bin/lib /usr/local/awstats/wwwroot/cgi-bin/plugins) at (eval 5) line 1. Error: Need Perl module Geo::IP or Geo::IP::PurePerl Setup (‘/etc/awstats/awstats.mirror.conf’ file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in ‘docs’ directory). 구글에 검색을

FreeBSD – RRDs.so: Undefined symbol “PL_sv_undef”

FreeBSD에서 MRTG에 RRDTOOL을 사용하려 할때 아래와 같은 에러가 뜰경우가 있습니다. # mrtg /usr/local/etc/mrtg/ruo91.cfg Can’t load ‘/usr/local/lib/perl5/site_perl/5.10.1/mach//auto/RRDs/RRDs.so’ for module RRDs: /usr/local/lib/perl5/site_perl/5.10.1/mach//auto/RRDs/RRDs.so: Undefined symbol “PL_sv_undef” at /usr/local/lib/perl5/5.10.1/mach/DynaLoader.pm line 200. at /usr/local/bin/mrtg line 346 Compilation failed in require at /usr/local/bin/mrtg line 346. 이 경우 p5-RRDTool 를 재설치하면 되는데 rrdtool이 먼저 설치 되어 있을 경우 rrdtool도 지우고 설치하시면 됩니다. # pkg_info | grep rrdtool rrdtool-1.4.4       Round Robin Database Tools # pkg_delete rrdtool-1.4.4 # cd /usr/ports/devel/p5-RRDTool-OO ; make deinstall clean ; make install clean 다시 MRTG 실행하시면 됩니다. # mrtg /usr/local/etc/mrtg/ruo91.cfg Daemonizing MRTG … 참고 http://forum.centreon.com/archive/index.php/t-4516.html

1 2 3 10