Recent posts - ooo.hk Data center Forum http://forum.ooo.hk/ Thu, 02 Sep 2010 05:10:12 +0800 esoTalk Lin - Nginx reverse Proxy http://forum.ooo.hk/index.php/post/33/ <p>Example:</p><p><i>user www www;<br/>worker_processes 1;<br/>error_log /logs/nginx_error.log crit;<br/>pid /nginx/nginx.pid;<br/>worker_rlimit_nofile 51200;</p><p>events <br/>{<br/> use epoll;<br/> worker_connections 51200;<br/>}</p><p>http <br/>{<br/> include mime.types;<br/> default_type application/octet-stream;</p><p> server_names_hash_bucket_size 128;<br/> client_header_buffer_size 32k;<br/> large_client_header_buffers 4 32k;<br/> client_max_body_size 8m;</p><p> sendfile on;<br/> tcp_nopush on;<br/> keepalive_timeout 60;<br/> tcp_nodelay on;</p><p> fastcgi_connect_timeout 300;<br/> fastcgi_send_timeout 300;<br/> fastcgi_read_timeout 300;<br/> fastcgi_buffer_size 64k;<br/> fastcgi_buffers 4 64k;<br/> fastcgi_busy_buffers_size 128k;<br/> fastcgi_temp_file_write_size 128k;<br/> fastcgi_intercept_errors on;</p><p> gzip on;<br/> gzip_min_length 1k;<br/> gzip_buffers 4 16k;<br/> gzip_http_version 1.1;<br/> gzip_comp_level 3;<br/> gzip_types text/plain application/x-javascript text/css text/xml image/gif image/jpeg application/atom+xml application/rss+xml text/vnd.wap.wml text/x-component application/octet-stream application/x-rar-compressed;<br/> gzip_vary on;</p><p> server<br/> {<br/> listen 80;<br/> server_name www.xxx.xx xxx.xx;<br/> if ($host != &#39;www.xxx.xx&#39; )<br/> {<br/> rewrite ^/(.*)$ http://www.xxx.xx/$1 permanent;<br/> }<br/> index index.html index.htm index.php;<br/> root /htdocs/;</p><p>location / {<br/> root /htdocs/;<br/> proxy_redirect off ;<br/> proxy_set_header Host $host;<br/> proxy_set_header X-Real-IP $remote_addr;<br/> proxy_set_header REMOTE-HOST $remote_addr;<br/> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br/> client_max_body_size 50m;<br/> client_body_buffer_size 256k;<br/> proxy_connect_timeout 30;<br/> proxy_send_timeout 30;<br/> proxy_read_timeout 60;<br/> proxy_buffer_size 256k;<br/> proxy_buffers 4 256k;<br/> proxy_busy_buffers_size 256k;<br/> proxy_temp_file_write_size 256k;<br/> proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;<br/> proxy_max_temp_file_size 128m;<br/> proxy_pass http://your.domain;<br/>}</p><p> log_format xxxlogs &#39;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#39;<br/> &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39;<br/> &#39;&quot;$http_user_agent&quot; $http_x_forwarded_for&#39;;<br/> access_log /logs/xxx/xxx.log xxxlogs;<br/> }<br/>}</i></p> Thu, 02 Sep 2010 05:10:12 +0800 http://forum.ooo.hk/index.php/post/33/ Lin - Smtp replace Sendmail in Hostbill http://forum.ooo.hk/index.php/post/32/ <p>最近发现hk2的英国主机sendmail发送邮件被谷歌默认垃圾邮件<br/>因此建议更改为smtp发送<br/>感谢支持<br/><img src='http://lh5.ggpht.com/_0wcPvHPKdS0/THKeaIBS9AI/AAAAAAAAAp0/ff7bF6LKxyk/s800/Unnamed%20QQ%20Screenshot.jpg'/></p> Tue, 24 Aug 2010 00:18:26 +0800 http://forum.ooo.hk/index.php/post/32/ Lin - msmtp+Google Apps replace sendmail in php http://forum.ooo.hk/index.php/post/31/ <p>msmtp+Google Apps替换sendmail<br/>1,<br/>apt-get install msmtp 注:在debian、ubuntu 等在线安装方法;<br/>yum install msmtp 注:Fedora、Redhat、CentOS等系统安装方法; <br/>pacman -S mstmtp 注:archlinux安装方法<br/>2,<br/>配置smtp服务器,<br/>vi /etc/msmtprc</p><p>account default<br/>host <a href='http://smtp.gmail.com'>smtp.gmail.com</a> #smtp服务器地址<br/>port 587<br/>timeout 30<br/>auth on<br/>user <a href='mailto:g@ooo.hk'>g@ooo.hk</a> #替换成自己的邮箱地址<br/>password ************* #密码<br/>auto_from off<br/>from <a href='mailto:g@ooo.hk'>g@ooo.hk</a> #这个同上<br/>maildomain <a href='http://ooo.hk'>ooo.hk</a> #替换成自己的域名<br/>tls on<br/>tls_starttls on<br/>tls_trust_file /etc/ssl/certs/ca-certificates.crt<br/>logfile /var/log/msmtp.log</p><p>3,<br/>修改php.in<br/>sendmail_path = &quot;/usr/bin/msmtp -t -i&quot;</p><p>4.<br/>Reboot</p> Sat, 14 Aug 2010 04:19:05 +0800 http://forum.ooo.hk/index.php/post/31/ lu2 - LNMP0.4 a key installation for Centos,Debian and Ubuntu http://forum.ooo.hk/index.php/post/30/ <p>LNMP a key installation package is written with the Linux Shell for CentOS / RadHat, Debian / Ubuntu VPS (VDS) or independent host installation LNMP <b>(Nginx, MySQL, PHP, phpMyAdmin) </b>Shell process production environment.<br/><del>1</del></p><h3>System requirement:</h3><p>1Gb hard Disk space;128M RAM.</p><h3>installation steps</h3><p>1,Download LNMP:</p><blockquote><p><cite>wget <a href='http://soft.vpser.net/lnmp/lnmp0.4-full.tar.gz'>http://soft.vpser.net/lnmp/lnmp0.4-full.tar.gz</a> </cite></p></blockquote><blockquote><p><cite>tar zxvf lnmp0.4-full.tar.gz</cite></p></blockquote><blockquote><p><cite>cd lnmp0.4-full/</cite></p></blockquote><p>2.Installation steps for Centos</p><blockquote><p><cite>./centos.sh</cite></p></blockquote><p>3.installation steps for Debian/Ubuntu</p><blockquote><p><cite>./debian.sh</cite></p></blockquote><p>4,LNMP related directory</p><p>mysql : /usr/local/mysql<br/>php : /usr/local/php <br/>nginx : /usr/local/nginx <br/>web: /home/wwwroot<br/>phpinfo: yourdomain/p.php<br/>5,Lnmp state management:<br/>/root/lnmp { start|stop|reload|restart|kill|status}<br/>6,Add other site on lnmp</p><blockquote><p><cite>/root/lnmp0.4-full/vhost.sh</cite></p></blockquote><p>7.Installation eAccelerator</p><blockquote><p><cite>/root/lnmp0.4-full/eaccelerator.sh</cite></p></blockquote><h3></h3><p>Some Chinese developers install successful in <a href='http://VPS.NET'>VPS.NET</a> <a href='http://Diahosting.com'>Diahosting.com</a> <a href='http://linode.com'>linode.com</a> <a href='http://photonvps.com'>photonvps.com</a> <br/>LNMP for chinese : <a href='http://lnmp.org'>lnmp.org</a></p> Sun, 01 Aug 2010 22:16:54 +0800 http://forum.ooo.hk/index.php/post/30/ lu2 - How to test Disk of VPS/Server write speed on Linux? http://forum.ooo.hk/index.php/post/29/ <p>SSH command:</p><blockquote><p><cite>dd if=/dev/zero of=100mb.bin bs=100M count=1</cite></p></blockquote><p>exempt (<a href='http://vps.net'>vps.net</a> Cloud Server):</p><p>[root@nsA ~]# dd if=/dev/zero of=100mb.b in bs=100M count=1<br/> 1+0 records in<br/> 1+0 records out<br/> 104857600 bytes (105 MB) copied, 0.17155 2 seconds, 611 MB/s <br/>[root@nsA ~]#</p> Fri, 30 Jul 2010 09:59:36 +0800 http://forum.ooo.hk/index.php/post/29/ lu2 - Peer1 Data Centers Download speed test http://forum.ooo.hk/index.php/post/28/ <p>Herndon, VA:<br/><a href='http://speedtestva.com/100_MB.BIN'>http://speedtestva.com/100_MB.BIN</a></p><p>Los Angeles, CA:<br/><a href='http://speedtestla.com/100_MB.BIN'>http://speedtestla.com/100_MB.BIN</a></p><p>London, UK:<br/><a href='http://speedtestuk.com/100_MB.zip'>http://speedtestuk.com/100_MB.zip</a></p><p>San Antonio, TX:<br/><a href='http://speedtestsa.com/100_MB.BIN'>http://speedtestsa.com/100_MB.BIN</a></p><p>Toronto, ON:<br/><a href='http://speedtesttor.com/100_MB.BIN'>http://speedtesttor.com/100_MB.BIN</a></p><p>Atlanta, GA:<br/><a href='http://speedtestatl.com/100_MB.BIN'>http://speedtestatl.com/100_MB.BIN</a></p><p>Fremont, CA:<br/><a href='http://speedtestfmt.com/100_MB.BIN'>http://speedtestfmt.com/100_MB.BIN</a></p><p>Miami, FL:<br/><a href='http://speedtestmia.com/100_MB.BIN'>http://speedtestmia.com/100_MB.BIN</a></p> Tue, 27 Jul 2010 06:12:43 +0800 http://forum.ooo.hk/index.php/post/28/ 卜卜口の - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/27/ <p>我那这论坛的数据还有备份</p> Sat, 24 Jul 2010 14:24:22 +0800 http://forum.ooo.hk/index.php/post/27/ Lin - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/26/ <blockquote><p><cite>Boy&amp;#39;z - <a href='http://forum.ooo.hk/index.php/post/25/' class='postLink'>go to this post</a></cite></p><p>我的妈呀,可算进来了。最近忙工作,咋又变样啦?</p></blockquote><p>恩,男人开始觉得忙的时候就真正上路了</p> Thu, 22 Jul 2010 09:55:49 +0800 http://forum.ooo.hk/index.php/post/26/ Boy'z - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/25/ <p>我的妈呀,可算进来了。最近忙工作,咋又变样啦?</p> Tue, 20 Jul 2010 17:28:33 +0800 http://forum.ooo.hk/index.php/post/25/ lu2 - get the ssl certification http://forum.ooo.hk/index.php/post/24/ <p>SSl申请说明</p><p>You domain:</p><p>Root mail(确认你的 <a href='mailto:root@youdomail.com'>root@youdomail.com</a>是有效能收到信的邮箱):</p><p>The csr(可以去 <a href='https://www.myssl.cn/openssl/createcsr.asp'>https://www.myssl.cn/openssl/createcsr.asp</a><br/> 在线生成一个csr和key,注意:生成的key和请在本地做好备份,丢失后证书作废,csr以文本格式提交我们即可在uk2进行CA签发):</p><p>*Address and contact information*<br/>*</p><ul><li>Your Name:</li></ul><ul><li>Your Company:</li></ul><ul><li>Contact Email address :</li></ul><ul><li>Street Address 1 :</li></ul><ul><li>Address 2 (apt #, suite #, etc):</li></ul><ul><li>City :</li></ul><ul><li>State :</li></ul><ul><li>Postcode :</li></ul><ul><li>Country :</li></ul> Mon, 19 Jul 2010 14:35:15 +0800 http://forum.ooo.hk/index.php/post/24/ fayda - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/23/ <p>好吧。。。我也来了。。。</p> Wed, 07 Jul 2010 02:09:47 +0800 http://forum.ooo.hk/index.php/post/23/ Eternity - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/22/ <p>路过真好看看</p> Tue, 06 Jul 2010 13:52:16 +0800 http://forum.ooo.hk/index.php/post/22/ lu2 - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/21/ <blockquote><p><cite>123 - <a href='http://forum.ooo.hk/index.php/post/20/' class='postLink'>go to this post</a></cite></p><ul><li>- 好像激活信要多点一次发送才送来&lt;/blockquote&gt;</li></ul><p>SendMail does not work a few days ago, and now we have fixed Bug .<br/>前几天Sendmail 组建出错,现在已经修复了Bug</p> Thu, 01 Jul 2010 05:15:31 +0800 http://forum.ooo.hk/index.php/post/21/ 123 - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/20/ <ul><li>- 好像激活信要多点一次发送才送来</li></ul> Wed, 30 Jun 2010 12:36:29 +0800 http://forum.ooo.hk/index.php/post/20/ 123 - We can also visit Google picasa without proxy in China http://forum.ooo.hk/index.php/post/19/ <p>会不会再次墙掉?</p> Wed, 30 Jun 2010 12:35:51 +0800 http://forum.ooo.hk/index.php/post/19/ Crll - Welcome to ooo.hk Data center Forum! http://forum.ooo.hk/index.php/post/18/ <blockquote><p><cite>Ling - <a href='http://forum.ooo.hk/index.php/post/12/' class='postLink'>go to this post</a></cite></p><blockquote><p><cite>Crll - <a href='http://forum.ooo.hk/index.php/post/11/' class='postLink'>go to this post</a></cite></p><pre>很好,很不错 </pre></blockquote><p>f可以考虑下这个微型论坛程序,支持中文简体和繁体</p></blockquote><p>恩恩,我一直在观望,要是能支持附件上传就更好了。</p> Mon, 28 Jun 2010 17:48:59 +0800 http://forum.ooo.hk/index.php/post/18/ Lin - Linode 5 Data Centers Download speed test http://forum.ooo.hk/index.php/post/17/ <h3>London, UK</h3><blockquote><p><cite>tracert <a href='http://london1.linode.com'>london1.linode.com</a></cite></p></blockquote><p><a href='http://london1.linode.com/100MB-london.bin'>http://london1.linode.com/100MB-london.bin</a></p><h3>Newark, NJ</h3><blockquote><p><cite><a href='http://newark1.linode.com'>newark1.linode.com</a></cite></p></blockquote><p><a href='http://newark1.linode.com/100MB-newark.bin'>http://newark1.linode.com/100MB-newark.bin</a></p><h3>Atlanta, GA</h3><blockquote><p><cite>tracert <a href='http://atlanta1.linode.com'>atlanta1.linode.com</a></cite></p></blockquote><p><a href='http://atlanta1.linode.com/100MB-atlanta.bin'>http://atlanta1.linode.com/100MB-atlanta.bin</a></p><h3>Dallas, TX</h3><blockquote><p><cite>tracert <a href='http://dallas1.linode.com'>dallas1.linode.com</a></cite></p></blockquote><p><a href='http://dallas1.linode.com/100MB-dallas.bin'>http://dallas1.linode.com/100MB-dallas.bin</a></p><h3>Fremont, CA</h3><blockquote><p><cite>tracert <a href='http://fremont1.linode.com'>fremont1.linode.com</a></cite></p></blockquote><p><a href='http://fremont1.linode.com/100MB-fremont.bin'>http://fremont1.linode.com/100MB-fremont.bin</a></p> Sun, 27 Jun 2010 21:51:21 +0800 http://forum.ooo.hk/index.php/post/17/ Lin - The VPS and CDN of vps.net test download http://forum.ooo.hk/index.php/post/16/ <h3>served by Theirs UK cloud in London:</h3><blockquote><p><cite>tracert <a href='http://uk.cloudtestfiles.net'>uk.cloudtestfiles.net</a></cite></p></blockquote><p><a href='http://uk.cloudtestfiles.net/speedtest.256mb'>http://uk.cloudtestfiles.net/speedtest.256mb</a></p><h3>served by Theirs US cloud in Salt Lake City</h3><blockquote><p><cite>tracert <a href='http://us.cloudtestfiles.net'>us.cloudtestfiles.net</a></cite></p></blockquote><p><a href='http://us.cloudtestfiles.net/speedtest.256mb'>http://us.cloudtestfiles.net/speedtest.256mb</a></p><h3>served by Theirs US cloud in Chicago</h3><blockquote><p><cite>tracert 206.217.199.8</cite></p></blockquote><p>http://206.217.199.8/speedtest.256mb</p><h3>served by Theirs US cloud in Atlanta</h3><blockquote><p><cite>tracert 98.158.177.224</cite></p></blockquote><p>http://98.158.177.224/256mb.bin</p><h3>served by one of Theirs 20+ CDN locations.</h3><blockquote><p><cite>tracert <a href='http://hwcdn.net'>hwcdn.net</a></cite></p></blockquote><p><a href='http://hwcdn.net/k8h3x3r8/cds/speedtest.256mb'>http://hwcdn.net/k8h3x3r8/cds/speedtest.256mb</a></p><h3>served by one of Akamai&#39;s 65000 servers.</h3><blockquote><p><cite>tracert <a href='http://op.nullmind.com'>op.nullmind.com</a></cite></p></blockquote><p><a href='http://op.nullmind.com/100mb.bin'>http://op.nullmind.com/100mb.bin</a></p> Fri, 25 Jun 2010 23:29:19 +0800 http://forum.ooo.hk/index.php/post/16/ 卜卜口の - We can also visit Google picasa without proxy in China http://forum.ooo.hk/index.php/post/15/ <p><img src='http://lh3.ggpht.com/_R992FnZc4_g/S7Smbbv9G4I/AAAAAAAAKxs/XQdaoiMO1uA/IMG_0377.JPG'/></p> Wed, 23 Jun 2010 10:02:32 +0800 http://forum.ooo.hk/index.php/post/15/ 卜卜口の - We can also visit Google picasa without proxy in China http://forum.ooo.hk/index.php/post/14/ <p><img src='http://lh4.ggpht.com/_R992FnZc4_g/S7Smd18QLMI/AAAAAAAAKyE/j4NxA0BSHdU/IMG_0400.JPG'/></p> Wed, 23 Jun 2010 10:01:40 +0800 http://forum.ooo.hk/index.php/post/14/