2012-01-01ãã1å¹´éã®è¨äºä¸è¦§
ããããã£ã¤ãã§ãã1å¹´ã®æå¾ãªã®ã§ã¾ã¨ãã¦ã¿ãããä»å¹´ã¯ãã©ã¤ãã¼ãã§è²ã ãã£ãããè·å ´ã®ååã4人ãããä¸æ°ã«è¾ãã¦æ¥ã«å¿ãããªã£ããããã¿ãã¿ããå¹´ã§ãããã½ã¦ã«å¾åã ãã¶é»ãã§ãã Perlã«ã¤ã㦠ä»å¹´ãYAPCåå ã§ãã¦æ¥½ããã£ãããid:keâ¦
show global status ãä¸æ°ã«è¡¨ç¤ºããããã¦å°ãã®ã§less使ããããgrepããããsqlã®è¨é²ã¨ãããã°ãæ®ãããçãæã£ã¦ããã©ï¼mysqlã«å ¥ãåã«scriptå©ãã°ã§ãããã©) mysqlå ã§åºæ¥ãã®åãã¦ç¥ã£ãã mysql> \h (ç¥) pager (\P) Set PAGER [to_pager]â¦
tomcat ã«snmpå¿çããããè¨å® CATALINA_OPTSã«è¿½å tomcat 7.0ã¯snmp.acl.fileã§ã¯ãªãã¦snmp.aclã®æ¨¡æ§ãlisten ããinterfaceãfile, acl file ã¯é©å½ã«è¨å®ãtomcat 7.0 -Dcom.sun.management.snmp.interface=0.0.0.0 \ -Dcom.sun.management.snmp.portâ¦
æ®éã«error_page 502ãè¨å®ãã¦ããã ãã ã¨ãproxy_passã§æå®ãã¦ãããµã¼ããè½ã¡ãå ´åã¯nginx defaultã®502ã表示ãããã®ã§ãrecursive_intercept_errors on; ãå¿ è¦ã error_page 502 /502.html; recursive_intercept_errors on;è¿½è¨ ãã¯ãè¨æ¶ã®å½¼â¦
haproxyãæ¤è¨¼ãããã¨ãã¦ãã¦èµ·ããã LB: os: centos6 httpd: haproxy epel 1.4.22 server os: centos6 httpd: nginx epel 1.0.15 ä»®æ³OSä¸ã®CentOS6ã®haproxyç®æãã¦http_load ãã¶ã£ããã ã¨ãããsyslogã«å¤§éã®ã¨ã©ã¼ãåºãã __ratelimit: 10662 caâ¦
mailãéä¿¡ããã¦ã¼ã¶ã(apacheçµç±ã§å®è¡ããwebã¢ããªã±ã¼ã·ã§ã³ã®å ´åã¯apache ç)ã /etc/mail/trusted-users ã«è¿½å ããã
bash -x hoge.sh ã¨ããã¤ããããééã£ã¦vim -x hoge.sh ã¨å®è¡ããã¨ããæå·åã§ãããªãã·ã§ã³ã ã¨ãããã¨ãç¥ã£ããä¸åº¦-x ã§æå·åããããã®å¾ã¯æ®éã«vimã§éãã°ããã $ vim -x hoge.sh æå·åç¨ã®ãã¼ãå ¥åãã¦ãã ãã: ****ãããã¯ãvimã§â¦
http://www.percona.com/doc/percona-toolkit/2.1/ percsona toolkit ã«ã¯è²ããªããããããã©ããã®ãªãã§ãpt-query-digest ãè¯ãã§ãããtcpdump ã§ãã±ããããã£ããã£ãã¦ãã®ã¾ã¾é£ãããããã®ã§ãmysql 5.0æªæºã§ç´°ããå解è½ã§slowãã°ãåºããªâ¦
nic 2æ æã£ã¦ãlinuxãLoad Balancerã¨ãã¦åããããã£ãã®ã§ä¹ ã ã«ãããã¨ãããçµæ§å¿ãã¦ããã®ã§ã¡ã¢ã LBãããªãã¦æ®éã®routerã«ããããªããvyattaã使ãã°NATã®è¨å®å ¥ãããè£ã§iptablesãè¨å®ãã¦ããã¦æ¥½ã§ããã©ã eth0: 192.0.2.1 (ã°ãã¼â¦
http://wiki.nginx.org/LikeApache http://wiki.nginx.org/HttpProxyModule#proxy_redirect proxy_redirect apacheã®ProxyPassRervese ã®ãããªãã¨ãããè¨å®ãdefaultã®è¨å®ã¯ proxy_redirect default;ã§ãããã¯Locationãããã®Hostã¨portã®æ¸ãæãã¾ã§â¦
http://www.fprog.org/~mura-masa/diary/?date=20111130 man pam_tally2 /etc/pam.d/password-auth authã®åé é¨åã«è¿½è¨ã(pam_env.soã®æ¬¡ï¼) ä¸ã®ä¾ã¯åè¨å¤±æ3åããã¨ããã¯ãããã(ããã¯ãããã¾ã§ã®éä¸ã«ä¸åº¦ã§ãèªè¨¼æåããã失æåæ°ã¯ã¯ãªã¢ãâ¦
404ã®æã«ååä»ãlocationã§è¨å®ããempty_gifã使ãã°ããã¾ãããä¸ã®è¨å®ã¯ã¤ãã§ã«logæ¨ã¦ã¦ããã nginx.conf location = /favicon.ico { error_page 404 = @favicon; access_log off; log_not_found off; } location @favicon { empty_gif; access_loâ¦
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-Server_Security.html#sect-Security_Guide-Server_Security-Securing_Services_With_TCP_Wrappers_and_xinetd man hosts.allow hostsâ¦
è³æ ¼ãªãã¦å¤§å¦ã®ã¨ãã«åã£ãåç´ã·ã¹ã¢ã以å¤æã£ã¦ãªãã¦èå³ããªãã£ããã ãã©ããã¯ã客観çã«ã¢ãã¼ã«ããææ¨ã®ä¸ã¤ã«ã¯ãªããããã¨ä»æ´æãå§ããã®ã§åã£ã¦ã¿ããã¨æã8ææ«ããåå¼·å§ãã¾ãããç®æ¨ã¯LPIC Level3 ã¨CCNP ãããã¯ããããããâ¦
é常1ã¤ã®nicä¸ã«ä»®æ³IPãå²ãå½ã¦ãå ´åã¯ifconfig eth0:0 ã®ããã«aliasã§è¨å®ããã°ãããã©ãL2ã¬ãã«ã§ã®ä»®æ³ããã¤ã¹ã欲ããã£ãã®ã§tapã使ã£ã¦ã¿ãã # yum install tunctl # tunctl ==> tap0 ãåºæ¥ããã¨ã¯ãã¤ãã®ããã«/etc/sysconfig/network-â¦
dynagenã§cisco routerãåããã®ã¯ãããã©ãã¢ã¯ã»ã¹ããã«ã¯ã³ã³ã½ã¼ã«ç¨ã®ãã¼ãã«æ¥ç¶ããªãã¨ãããªãã¦ãã¼ãçªå·å¿ããããããããããããã®ã§ãç´æ¥æ¥ç¶ããããªã£ãã®ã§ãã£ãã dynagenã®routerã®è¨å®ã§ãF1/0 = NIO_tap:tap0 ã®ããã«è¨è¿°ããâ¦
mysqldumpã³ãã³ããå©ãã¦ããã¦ã¼ã¶ã®æ¨©éãã¨æã£ã¦ãããã©ãmysqlããã»ã¹ä¸ããSELECT ... OUTFILE ã§æ¸ãåºãããmysqlã®æ¨©éãå¿ è¦ã¨ãããã¨ï¼ãã¼ãã«ã®schemaã®.sql ã¯å®è¡ããã¦ã¼ã¶ã§ä½æããã¦ãããã©ãã¼ã¿ã®.txt ã¯mysqlã¦ã¼ã¶ã ã£ãã $ câ¦
dynagen dynamips ä½ãä¼ç¤¾ã®èªå¸ããåå¾2ã¡ã¼ãã«ãããã§ã«ããã«çãä¸ãã£ã¦ããã®ã§ãã£ã¦ã¿ããGUIã使ãããªãGNS3ã¨ããã®ã使ãã¨ããããã¸ã¼ãç°¡åã«ä½ããã®ã§è¯ããã¨ãã¥ã¬ã¼ããããã·ã³ã«Catalystã¯ãªããã©ãrouterã«NM-16ESW ã¢ã¸ã¥ã¼ã«â¦
http://www.gluster.org/download/ http://www.gluster.org/wp-content/uploads/2012/05/Gluster_File_System-3.3.0-Administration_Guide-en-US.pdf ã¬ãããããã«è²·åãããã¨ãã§ãRHEVãovirtã¨ã絡ãã§ããããªã®ã§è©¦ãã¦ã¿ããå®é¨ç¨ã«ä»®æ³åç°å¢ã§åâ¦
clusterãè¨å®ããã¨å é¨çã«ã¯heartbeat ãåãåºããã¨ããããã§heartbeatãããã£ã¦ããã°ãè¨å®å¤ãè¦ããã¨ããæãã§ãããããããclusterã¯vrrpã®ããã«interfaceãã¨ã§ã¯ãªãã¦ãvyatta systemå ¨ä½ã®è¨å®ãâã®timeoutçã¯é©å½ $ configure # set câ¦
vrrpã¯clusterã¨éã£ã¦interfaceãã¨ã«è¨å®ãvrrpãæå¹ã«ããã¨å é¨ã§ã¯keepalivedãåãåºãã ã¨ããããã§keepalivedãããã£ã¦ããã°(rypriority ã¯å¤§ããã»ã©åªå 度ãé«ããpreempt (å²ãè¾¼ã¿) ã¯defaultã§ã¯trueã«ãªã£ã¦ããã©ãåæã«takeoverã¨ããâ¦
interface external: eth0 internal: eth1 source nat vyattaãgatewayã¨ãã¦å©ç¨ããå ´åãLANå ã®private IP ãNATããè¨å®ãvyattaã®eth0å´ãä¸ä½ã®ãããã¯ã¼ã¯ã«æ¥ç¶ãã¦ããinterfaceã¨ããã $ configure # set nat source rule 10 # set nat source â¦
interface external: eth0 internal: eth1 (ããã§ä½¿ã£ãnetworkæ§æã ã¨ãeth0ãåä¸ã®subnetãªã®ã§vpnããªãã¦ãroutingè¨å®ããã ãã§ãããã ãã©ãå®é¨ã®ããã«vpnãã£ã¦ã¿ã¦ã) vyatta vyatta1 vyatta2 eth0 192.168.0.254/24 192.168.0.253/24 eth1 1â¦
$ configure # set protocols static route 192.168.0.0/24 next-hop 192.168.1.1 # commit # save # exit $ show ip route
# set system package repository squeeze components main # set system package repository squeeze url http://packages.vyatta.com/debian/ # set system package repository squeeze distribution squeeze # exit $ sudo apt-get update $ sudo apt-getâ¦
ãããããphpãcgiç¨(--with-apxs ãã¤ããã«)ã§ã¤ã³ã¹ãã¼ã«ãã¦ãããã¨(php-cgi ãã¤ããªãå¿ è¦)ãfastcgiã¯epelã«spawn-fcgi ãããã®ã§ããã使ãã # yum install --enablerepo=epel spawn-fcgi # vim /etc/sysconfig/spawn-fcgi #### socket, php-cgâ¦
http://www.ruby-forum.com/topic/145858 http://library.linode.com/web-servers/nginx/perl-fastcgi/ http://library.linode.com/web-servers/nginx/perl-fastcgi/centos-5 http://d.hatena.ne.jp/Kmusiclife/20111107/1320678141 install fastcgi # yum iâ¦
fastcgi ãªã©ãè¨å®ããéã« location . \.cgi$ ã¨è¨å®ããã¨ã/index.cgi/foo/bar ãªã©ã®URLã«å¯¾å¿ã§ããªãã®ã§ãã£ãã nginx.conf location ~ \.cgi($|/) { include fastcgi_params; fastcgi_pass 127.0.0.1:8999; fastcgi_index index.cgi; fastcgi_spliâ¦
http://d.hatena.ne.jp/hogem/20101115/1289827270 ç¶ã tarã¨çµã¿åãããã°ãã¡ã¤ã«ã ããããªãã¦ãã£ã¬ã¯ããªãã¨ããã¾ãããncã®å ¥åºåã«tar ã®"-" ã§æ¨æºå ¥åºåã使ãã°è¯ãã portã¯é©å½(ããã§ã¯10000) éä¿¡ãµã¼ã tar zcvf - ./directory | nc -l â¦
http://miyatech.blog.so-net.ne.jp/2011-10-01-1 ä¹ ã ã«ãã£ããã©å¿ããã¦ããsendmailã®mailertableã¨éã£ã¦ãpostfixã®transport_mapsã¯smtpãµã¼ããï¼ã¤ããæå®ã§ããªããããéçé éå ã®ãµã¼ããåé·æ§æã§æå®ã§ããªãã(é éå ãµã¼ããæ»ãã ã¨ãâ¦