UPS¤ÎÀßÄê¡¡ÅŸ»¶¡µëÉü³è¤·¤¿¤éµ¯Æ°¤¹¤ëÊýË¡¤òÃΤꤿ¤¤ †
Apache †
- http://d.hatena.ne.jp/geek_it/20090824/1251131134
grep ºÆµ¢¸¡º÷¤É¤Î¤è¤¦¤Ë¤¹¤ë¡© †
/usr/sbin/useradd †
sudo †
/etc/hosts †
- http://zanjibar.cocolog-nifty.com/tips/2008/01/hosts_7770.html
Log Watch †
- CentOSÀßÄêÊýË¡¤ï¤«¤ê¤ä¤¹¤¤
- LogWatch
suexec ¤È Selinux ¤Î͸ú¤È̵¸ú¤Ë¤Ä¤¤¤Æ †
- http://centossrv.com/centos4-init.shtml
- SELinux¤ò̵¸ú
- ÌäÂê¤Ï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 ¤òÍøÍѤ·¤¿¥¢¥¯¥»¥¹À©¸Â †
- /etc/hosts.allow
All : 127.0.0.1 #localhost
All : 111.222.0.0/255.255.0.0 #<-ÀßÄêÎã
- /etc/hosts.deny
All : All
- ¡ÚÃí°Õ¡ÛÀè¤Ë¡¢hosts.allow¤«¤éÀßÄꤷ¤Ê¤¤¤È¡¢¥¢¥¯¥»¥¹¤Ç¤¤Ê¤¯¤Ê¤ë
ps aux †
Linux¥³¥Þ¥ó¥É¤Ç¥Õ¥¡¥¤¥ë¿ô¤ò¿ô¤¨¤ë †
- ¥µ¥¤¥º
$ du -h -s ./
- ¥Õ¥¡¥¤¥ë¿ô
find . | wc -l
¥µ¡¼¥ÐÀßÄê¡¡¥Ð¡¼¥Á¥ã¥ë¥É¥á¥¤¥ó †
- Apache¥Ð¡¼¥Á¥ã¥ë¥É¥á¥¤¥ó¤Ë¤Ä¤¤¤Æ¡¢»²¹Í
¥á¡¼¥ëžÁ÷ †
- procmail¤Ë¤è¤ëžÁ÷¡¡»²¹Í
date †
- ¥½¥Õ¥È¥¦¥¨¥¢»þ·×¤ò¹ç¤ï¤»¤ë¤Ë¤Ïdate¥³¥Þ¥ó¥É¤òÍøÍѤ¹¤ë¡£
- ¸½ºß¤Î»þ´Ö¤ò³Îǧ¤¹¤ë
# date
- 12»þ21ʬ30Éä˹ç¤ï¤»¤ë
# date -s 12:21:30
- ¥½¥Õ¥È¤È¥Ï¡¼¥É¤Î»þ·×¤òƱ´ü¤µ¤»¤ë
# /sbin/clock -w
cron †
wget †
ln ¤Ç¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ †
- http://www.makizou.com/archives/82
ln -s /home/target name
Tex †
- # yum install tetex tetex-fonts tetex-latex jadetex tetex-afm tetex-dvips
zip¤Ç°µ½Ì¤¹¤ë †
Perl CPAN ¥¤¥ó¥¹¥È¡¼¥ë †
ls ¤ÇŬÀڤʥµ¥¤¥ºÉ½¼¨ †
.bash_profile path ÀßÄê †
mail¥³¥Þ¥ó¥É¤Ç¥á¡¼¥ëÁ÷¿® †
mail ****@**.***
Subject:¤ÇÂê̾¤òÆþ¤ì[enter]
ËÜʸ¤òÆþ¤ì¤ë[enter]¤Ç²þ¹Ô
¹ÔƬ¤Ë¡Ö.¡×¤òÆþ¤ì¤ë¤ÈËÜʸ¤Î½ªÎ»
telnet ¥á¡¼¥ëÁ÷¿®¥Æ¥¹¥È †
- ¥á¡¼¥ëÁ÷¿®¤Ç¤¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë¡£
- $ telnet localhost 25
Trying ***.***.***.100...
Connected to localhost.localdomain (***.***.***.100).
Escape character is '^]'.
220 up.***ac.jp ESMTP Postfix
- helo up.***.ac.jp
250 up.***.ac.jp
- mail from:cbc@***.ac.jp
250 Ok
- rcpt to:kimura@***.ac.jp
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
- subject:TEST2
- abc
- .
250 Ok: queued as E0F0****
quit
221 Bye
Connection closed by foreign host.
¼«Æ°µ¯Æ°¡¡apache¤Ê¤É †
- chkconfig
- ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¥á¡¼¥ëÁ÷¿®¤¹¤ëÊýË¡¡¡http://cmd.misty.ne.jp/network/04.html
Basicǧ¾Ú †
htaccess¤Îµ½Ò [#y056f699]
- $ 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]
- $ htpasswd -n abc
- New password:
- Re-type new password:
- abc:ISVvPJIN3GXUM