UPS¤ÎÀßÄê¡¡ÅŸ»¶¡µëÉü³è¤·¤¿¤éµ¯Æ°¤¹¤ëÊýË¡¤òÃΤꤿ¤¤

Apache

  1. http://d.hatena.ne.jp/geek_it/20090824/1251131134

grep ºÆµ¢¸¡º÷¤É¤Î¤è¤¦¤Ë¤¹¤ë¡©

  • http://tonby.sakura.ne.jp/?p=104
  • grep -r "***" /etc/*
  • find ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê -iname "*.html" -exec grep -Hn pattern {} \;
  • find ./ -type f -exec grep baz {} \;

/usr/sbin/useradd

sudo

/etc/hosts

  1. http://zanjibar.cocolog-nifty.com/tips/2008/01/hosts_7770.html

Log Watch

  1. CentOSÀßÄêÊýË¡¤ï¤«¤ê¤ä¤¹¤¤
  2. LogWatch

suexec ¤È Selinux ¤ÎÍ­¸ú¤È̵¸ú¤Ë¤Ä¤¤¤Æ

  • http://centossrv.com/centos4-init.shtml
    • SELinux¤ò̵¸ú
      • /etc/selinux/config
        	¡ÖSELINUX=enforcing¡×¤ò¡ÖSELINUX=disabled¡×¤Ë¤·¤Æ¤«¤éºÆµ¯Æ°
    • ÌäÂê¤ÏsuEXEC
      • /etc/httpd/conf/http.conf
      • ¡ÖLoadModule? suexec_module modules/mod_suexec.so¡×¤ò¥³¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤À¤±¤Ç¤Ï¡ß
    • # apachectl -V
      • ¤Ç¡ÖSUEXEC_BIN="/usr/sbin/suexec"¡×¤ò³Îǧ¤·¤Æ¡¢¤½¤Î¾ì½ê¤Îsuexec¤ò¥ê¥Í¡¼¥à¡Ê¤Þ¤¿¤Ïºï½ü¡Ë¤¹¤ë¡£ ¤È½ñ¤¤¤Æ¤¢¤ë¤±¤É¡¢Âç¾æÉפ«¡©

pdf ¤ò°ì³ç·ë¹ç¤¹¤ë pdftk

tcp wrapper ¤òÍøÍѤ·¤¿¥¢¥¯¥»¥¹À©¸Â

  1. /etc/hosts.allow
    	All : 127.0.0.1 #localhost
    	All : 111.222.0.0/255.255.0.0 #<-ÀßÄêÎã
  2. /etc/hosts.deny
    	All : All
  3. ¡ÚÃí°Õ¡ÛÀè¤Ë¡¢hosts.allow¤«¤éÀßÄꤷ¤Ê¤¤¤È¡¢¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¯¤Ê¤ë

ps aux

  • ɬÍ×¤Ê¥×¥í¥»¥¹¤À¤±É½¼¨
    • ps aux | grep pl

Linux¥³¥Þ¥ó¥É¤Ç¥Õ¥¡¥¤¥ë¿ô¤ò¿ô¤¨¤ë

  • ¥µ¥¤¥º
    	$ du -h  -s ./
  • ¥Õ¥¡¥¤¥ë¿ô
    	find .  | wc -l

¥µ¡¼¥ÐÀßÄê¡¡¥Ð¡¼¥Á¥ã¥ë¥É¥á¥¤¥ó

  1. Apache¥Ð¡¼¥Á¥ã¥ë¥É¥á¥¤¥ó¤Ë¤Ä¤¤¤Æ¡¢»²¹Í

¥á¡¼¥ëžÁ÷

  1. procmail¤Ë¤è¤ëžÁ÷¡¡»²¹Í

date

  1. ¥½¥Õ¥È¥¦¥¨¥¢»þ·×¤ò¹ç¤ï¤»¤ë¤Ë¤Ïdate¥³¥Þ¥ó¥É¤òÍøÍѤ¹¤ë¡£
    • ¸½ºß¤Î»þ´Ö¤ò³Îǧ¤¹¤ë
      	# date 
    • 12»þ21ʬ30Éä˹ç¤ï¤»¤ë
      	# date -s 12:21:30
  2. ¥½¥Õ¥È¤È¥Ï¡¼¥É¤Î»þ·×¤òƱ´ü¤µ¤»¤ë
    	# /sbin/clock -w 

cron

wget

  • $ wget -r http://¥µ¥¤¥È̾/¥Ç¥£¥ì¥¯¥È¥ê/
    	-A	¥Õ¥¡¥¤¥ë̾¡¦¥Ñ¥¿¡¼¥ó	accept¤¹¤ë
    	-R	¥Õ¥¡¥¤¥ë̾¡¦¥Ñ¥¿¡¼¥ó	reject¤¹¤ë
    	-np	¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ïõº÷¤·¤Ê¤¤

ln ¤Ç¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯

  1. http://www.makizou.com/archives/82
    	ln -s /home/target  name

Tex

  1. # yum install tetex tetex-fonts tetex-latex jadetex tetex-afm tetex-dvips

zip¤Ç°µ½Ì¤¹¤ë

  • °µ½Ì
    • zip tmp.zip *.dat
  • ²òÅà
    • unzip abc.zip

Perl CPAN ¥¤¥ó¥¹¥È¡¼¥ë

  • # perl -MCPAN -e shell

ls ¤ÇŬÀڤʥµ¥¤¥ºÉ½¼¨

  • ls -lh
  • ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤Î¤ß
    	$ du -s ¥Ç¥£¥ì¥¯¥È¥ê̾
  • ¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥Õ¥¡¥¤¥ë¿ô¤ò¥«¥¦¥ó¥È(Linux)
    	ls | wc -w
  • ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ç¡¢ºÇ¶á10Æü¤ÎÆâ¤Ë½¤Àµ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¿ô
    	find . -ctime -10 -type f | wc -l

.bash_profile path ÀßÄê

  • vi .bash_profile
    	export PATH=$PATH:/home/weka
    	export CLASSPATH=$CLASSPATH:/home/weka/weka.jar:.
  • source .bash_profile

mail¥³¥Þ¥ó¥É¤Ç¥á¡¼¥ëÁ÷¿®

	mail ****@**.***
	Subject:¤ÇÂê̾¤òÆþ¤ì[enter]
	ËÜʸ¤òÆþ¤ì¤ë[enter]¤Ç²þ¹Ô
	¹ÔƬ¤Ë¡Ö.¡×¤òÆþ¤ì¤ë¤ÈËÜʸ¤Î½ªÎ»

telnet ¥á¡¼¥ëÁ÷¿®¥Æ¥¹¥È

  • ¥á¡¼¥ëÁ÷¿®¤Ç¤­¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë¡£
    1. $ telnet localhost 25
      	Trying ***.***.***.100...
      	Connected to localhost.localdomain (***.***.***.100).
      	Escape character is '^]'.
      	220 up.***ac.jp ESMTP Postfix
    2. helo up.***.ac.jp
      	250 up.***.ac.jp
    3. mail from:cbc@***.ac.jp
      	250 Ok
    4. rcpt to:kimura@***.ac.jp
      	250 Ok
      	data
      	354 End data with <CR><LF>.<CR><LF>
    5. subject:TEST2
    6. abc
    7. .
      	250 Ok: queued as E0F0****
      	quit
      	221 Bye
      	Connection closed by foreign host.

¼«Æ°µ¯Æ°¡¡apache¤Ê¤É

  1. chkconfig
  1. ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¥á¡¼¥ëÁ÷¿®¤¹¤ëÊýË¡¡¡http://cmd.misty.ne.jp/network/04.html

Basicǧ¾Ú

htaccess¤Îµ­½Ò [#y056f699]

  1. $ vi .htaccess
    	AuthUserFile /home/web/public_html/NLP-Source/.htpasswd
    	AuthGroupFile /dev/null
    	AuthName "Please enter your ID and password"
    	AuthType Basic
    	require valid-user

¥Ñ¥¹¥ï¡¼¥É¤òºîÀ®¤¹¤ëÊýË¡ [#l75ab6f3]

  1. $ htpasswd -n abc
  2. New password:
  3. Re-type new password:
  4. abc:ISVvPJIN3GXUM

ÌÚ¼¥¼¥ßÀ¸¸ÂÄê

ÊÔ½¸²èÌÌ
¥¼¥ßÀ¸
2021-2022ǯÅÙÀ¸(14´ü)
°¤ÉôÍÚÂçÆâñ¥
²¬ÅÄ°¼²»¶½À±ÍÛ
³á±ï²ÏÌîͳÌï
º´¡¹ÌÚô¥º´¡¹ÌÚÈþÇÈ
ßÀÅÄϵ®×¢µÈϵ®
Æ£°æ°ì»ÖÆ£ÅĽ¡¿¿
2020-2021ǯÅÙÀ¸(13´ü)
¾®ß·¿¿ô¥³Þ¸¶Í­¿¿
²ÃÆ£ÀµÃè³÷ÅÄÌöÅÍ
ºä¼Íã½»µÈ¿¿Æà
¹âÌîÂç²ÏÃæ°æÍÕ·î
±ÊÞ¼·ÊÍ´Ê¿´ÛºÚ¡¹»Ò
2019-2020ǯÅÙÀ¸(12´ü)
Âç°²¶³Ê¿--
¶áÆ£ÂÀͺÀ¶¿åÈþΤ
Ãæ¼²ÄÎçÊ¡»³³èµ¯
Ê¡²ÈÍ´µªÁ¥±ÛÅ·ºÌ
Æ°áΤ»³²¼²À·î
ºäËÜÎÃÂÀÅÚ²°ºÌ²Æ
2018-2019ǯÅÙÀ¸(ÉÔºß)
SEA-NAÂåɽ¼èÄùÌò
Ê¿²ìľµ±²£»³è½²Ö
½»µÈ¼Âµ§¼¼¶¶ÏºÈ
2017-2018ǯÅÙÀ¸(11´ü)
ÀйõÛÙÆà°ìµÜÂó³¤
µµ°æ³¤½®º´Æ£ÛÙ
º´Æ£Í­´õÉ°¿¹Âó¿¿
Æ£Ëܼë²Æ¥Û¥ï¥¤¥È¥¸¥Ë¡¼
ÁýÅÄÍ¥ºîëÆâ·òÂÀ
2016-2017ǯÅÙÀ¸(10´ü)
°ËÆ£¤ß¤­²¬Åç·ò¸ç
¾®À¾ÀãÍÕÍ´ÀîÂÙµ±
ÎëÌÚͤºÚÂçÌçÂó»Ë
ÅÄƬ¤ï¤«¤Ð¸ÍÅèºéÊæ
Ãæ¼ÃÒµ®À¾ÌîůÀ¸
²£»³Í´²ÌÀî´ßÍ´²Ì
2015-2016ǯÅÙÀ¸(09´ü)
Àõ²ì¼·³¤¾®ÎÓ¿¿ºÚ
À¾Â¼°Ë±ûËÙ¹¾ÃÎ̤
¿ËÀ¸°Ô´õ¼¾å¹ÀÂÀ
2014-2015ǯÅÙÀ¸(08´ü)
ÂçÀÐÀ¿ÂçÌÂÀϯ
²Ãƣ͵¼ùº´¡¹ÌÚº¸¶á
¹â¶¶Íýº»ÉðÅÄè½Êæ
»ûÅçÉñ»ÒȪ²ìÂç
»³ÅĽ¤À¤
2013-2014ǯÅÙÀ¸(07´ü)
²ÃÆ£»Ë¿¥¹©Æ£ÃÒ»Ò
º´¡¹ÌÚÍÕ»Ò»Ö³ù¼þ
¹â¶¶¸¼Î¶üâ¾¾æÆ
ÃæÈøÀéºéÃæÀîÎèºÚ
Ãæé®Âçµ®
2012-2013ǯÅÙÀ¸(06´ü)
±óÆ£À±ÃÏÂçÌî¼Óµ¨
³ùÅĤᤰ¤ßÌÚ²¼ÏÂÂç
ã·ÌÚÎò𺴡¹ÌÚÍÚ
º´Æ£Í¥»Ò¾Â߷ʸ¹á
¸Å²°¿¿ÍýµÈÅÄÃÒ¹°
2010-2011ǯÅÙÀ¸(05´ü)
°±¸¶»ËÉÒ°ËÆ£Â絯
°ËÆ£¤ß¤É¤ê±Êºäʸǵ
Æ£ÅĹҺÈÁ°Â¿ÂçÊå
¾¾ËÜÎÍͤµÜÄÅÍ­º»
»³ÅÄ°¡µ¨
2009-2010ǯÅÙÀ¸(04´ü)
´ßËÜδ»Ö·¦ÃÏͳ·Ã
»Ö²ìÀéÄáÄÅÅÄÍ­»Ò
»°±º¹©Ìï
2008-2009ǯÅÙÀ¸(03´ü)
°ÀÄŹ¯Í¤°æ¾å¤µ¤æ¤ê
Ë̺êͤ¼ù¹©Æ£Ï´²
¸ÅËóÍ¥²Öº´Àî¾´¹¨
º´Æ£Ä÷ÍÎÎëÌÚ°¡°á
Ãݸ¶´õÈþÆ£°æÍ¥ºî
ËÙ¸ø°ìËÙÆâ¾®¿¥
ÊÆß·¹¨»Ë
2007-2008ǯÅÙÀ¸(02´ü)
º´Æ£·òÂÀ¾å¼²Â¹°
±üÅÄ·¼µ®¾®ÌîÀ¿
Çò°æ¤«¤º¤ß¹â°æÍDzð
¿¹Ã«Î¼²ðÏ»ÅÏÍ­Íü·Ã
¼ãËÜůʿ
2006-2007ǯÅÙÀ¸(01´ü)
¿û°æ°´ÅÏÉô¸¬ÂÀϺ
Áêºä¿¿Â缲¿µ
±üÅí»Ò³Þ°æÌÔ
¾®ÎÓϹ¬óîÆ£¤¤¤Ä¤³
óîƣͺµªº´¡¹ÌÚËã̤
º´Æ£Æü²ÃÍùëËܵ®Ç·
ÆÁ¹¾Í¤²ðĹÎææûÊ¿
À¾Ëܤߤ椭ÎÓ³¨Î¤»Ò
ß·ÅÄÂçµ±