<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Njava</title>
	<atom:link href="http://www.njava.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.njava.com</link>
	<description>关注音乐，关注开发</description>
	<lastBuildDate>Thu, 10 May 2012 09:22:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在64位Ubuntu12.04上安装32位的官方QQ</title>
		<link>http://www.njava.com/njava-617.html</link>
		<comments>http://www.njava.com/njava-617.html#comments</comments>
		<pubDate>Thu, 10 May 2012 09:22:38 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[工具]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=617</guid>
		<description><![CDATA[官方linuxQQ版本上一次更新时间是2009年，linux下名副其实的烂尾工程，
使用命令强行安装

sudo dpkg -i --force-all linuxqq_v1.0.2-beta1_i386.deb

]]></description>
			<content:encoded><![CDATA[<p>官方linuxQQ版本上一次更新时间是2009年，linux下名副其实的烂尾工程，<br />
使用命令强行安装</p>
<pre style="brush:[shell]">
sudo dpkg -i --force-all linuxqq_v1.0.2-beta1_i386.deb
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-617.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu和macos在右上角增加系统状态监控system monitor</title>
		<link>http://www.njava.com/njava-610.html</link>
		<comments>http://www.njava.com/njava-610.html#comments</comments>
		<pubDate>Thu, 10 May 2012 05:35:26 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[工具]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=610</guid>
		<description><![CDATA[在ubuntu下面可以使用sudo apt-get install indicator-multiload
在mac下使用免费的MenuMeters
http://www.ragingmenace.com/software/menumeters/index.html

]]></description>
			<content:encoded><![CDATA[<p>在ubuntu下面可以使用sudo apt-get install indicator-multiload</p>
<div id="attachment_614" class="wp-caption alignnone" style="width: 310px"><a href="http://www.njava.com/wp-content/uploads/2012/05/snapshot1.png"><img class="size-medium wp-image-614" title="ubuntu12.04" src="http://www.njava.com/wp-content/uploads/2012/05/snapshot1-300x21.png" alt="" width="300" height="21" /></a><p class="wp-caption-text">ubuntu12.04</p></div>
<p>在mac下使用免费的MenuMeters</p>
<p>http://www.ragingmenace.com/software/menumeters/index.html</p>
<p><a href="http://www.njava.com/wp-content/uploads/2012/05/a.png"><img class="alignnone size-medium wp-image-612" title="MenuMeters" src="http://www.njava.com/wp-content/uploads/2012/05/a-300x37.png" alt="MenuMeters" width="300" height="37" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-610.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu解决不能远程访问snmp协议的</title>
		<link>http://www.njava.com/njava-608.html</link>
		<comments>http://www.njava.com/njava-608.html#comments</comments>
		<pubDate>Tue, 01 May 2012 15:24:49 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=608</guid>
		<description><![CDATA[需要远程使用snmp，发现ubuntu9.04上不支持远程访问，google了一下解决办法如下
编辑  /etc/default/snmpd 

$sudo vi /etc/default/snmpd
# This file controls the activity of snmpd and snmptrapd
# MIB directories.  /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf [...]]]></description>
			<content:encoded><![CDATA[<p>需要远程使用snmp，发现ubuntu9.04上不支持远程访问，google了一下解决办法如下<br />
编辑  /etc/default/snmpd </p>
<pre style="brush:[shell]">
$sudo vi /etc/default/snmpd
# This file controls the activity of snmpd and snmptrapd
# MIB directories.  /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
</pre>
<p>去掉snmpdopts中的127.0.0.1绑定</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-608.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu的dns服务器设置resolv.conf</title>
		<link>http://www.njava.com/njava-605.html</link>
		<comments>http://www.njava.com/njava-605.html#comments</comments>
		<pubDate>Mon, 30 Apr 2012 14:49:38 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[resolv]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=605</guid>
		<description><![CDATA[一起一直修改/etc/resolv.conf中加入

nameserver 8.8.8.8

现在更新却不行了，自定义的/etc/resolv.conf被系统覆盖了，出现了

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

搜索了一下解决办法，在/etc/resolvconf/resolv.conf.d/base里添加

$sudo vi /etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8

之后，每次重启之后/etc/resolv.conf中就回自动生成自定义的dns服务器信息了
]]></description>
			<content:encoded><![CDATA[<p>一起一直修改/etc/resolv.conf中加入</p>
<pre style="brush:[shell]">
nameserver 8.8.8.8
</pre>
<p>现在更新却不行了，自定义的/etc/resolv.conf被系统覆盖了，出现了</p>
<pre style="brush:[shell]">
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
</pre>
<p>搜索了一下解决办法，在/etc/resolvconf/resolv.conf.d/base里添加</p>
<pre style="brush:[shell]">
$sudo vi /etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8
</pre>
<p>之后，每次重启之后/etc/resolv.conf中就回自动生成自定义的dns服务器信息了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-605.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用persona　for cacti插件监控mysql</title>
		<link>http://www.njava.com/njava-598.html</link>
		<comments>http://www.njava.com/njava-598.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 04:39:08 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[监控]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=598</guid>
		<description><![CDATA[需要mysql调优，安装了一个cacti监控插件 Percona Monitoring Plugins ，
官方地址：http://www.percona.com/software/percona-monitoring-plugins/
1 下载　percona-monitoring-plugins-1.0.0.tar.gz
2 上传　ss_get_mysql_stats.php 到cacti的scripts目录/usr/share/cacti/site/scripts
3 进入cacti的web页面import 数据模版cacti_host_template_percona_mysql_server_ht_0.8.6i-sver1.0.0.xml
4 设置ss_get_mysql_stats.php里的mysql账号链接
5 Percona Monitoring Plugins参考文档：http://form.percona.com/rs/percona/images/Percona_Monitoring_Plugins_100_Operations_Manual.pdf
]]></description>
			<content:encoded><![CDATA[<p>需要mysql调优，安装了一个cacti监控插件 Percona Monitoring Plugins ，<br />
官方地址：http://www.percona.com/software/percona-monitoring-plugins/</p>
<p>1 下载　percona-monitoring-plugins-1.0.0.tar.gz<br />
2 上传　ss_get_mysql_stats.php 到cacti的scripts目录/usr/share/cacti/site/scripts<br />
3 进入cacti的web页面import 数据模版cacti_host_template_percona_mysql_server_ht_0.8.6i-sver1.0.0.xml<br />
4 设置ss_get_mysql_stats.php里的mysql账号链接<br />
5 Percona Monitoring Plugins参考文档：http://form.percona.com/rs/percona/images/Percona_Monitoring_Plugins_100_Operations_Manual.pdf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-598.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ubuntu上设置discuz远程附件</title>
		<link>http://www.njava.com/njava-595.html</link>
		<comments>http://www.njava.com/njava-595.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 03:01:01 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=595</guid>
		<description><![CDATA[1 安装sftpd
 sudo apt-get install vsftpd
2 设置ftp

 /etc/vsftpd.conf
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022

3 增加用户
useradd  -m ftp-user
4 将用户HOME目录链接到网站附件域名下
sudo ln -s /home/ftp-user /var/www/njava-att
]]></description>
			<content:encoded><![CDATA[<p>1 安装sftpd</p>
<pre style="brush:[shell]"> sudo apt-get install vsftpd</pre>
<p>2 设置ftp</p>
<pre style="brush:[shell]">
 /etc/vsftpd.conf
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
</pre>
<p>3 增加用户</p>
<pre style="brush:[shell]">useradd  -m ftp-user</pre>
<p>4 将用户HOME目录链接到网站附件域名下</p>
<pre style="brush:[shell]">sudo ln -s /home/ftp-user /var/www/njava-att</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-595.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用VIM作为git的默认编辑器</title>
		<link>http://www.njava.com/njava-593.html</link>
		<comments>http://www.njava.com/njava-593.html#comments</comments>
		<pubDate>Thu, 19 Apr 2012 02:46:59 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[工具]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.njava.com/njava-593.html</guid>
		<description><![CDATA[git config &#8211;global core.editor vim
]]></description>
			<content:encoded><![CDATA[<p>git config &#8211;global core.editor vim</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-593.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>检查Mac是否感染了Flashback病毒</title>
		<link>http://www.njava.com/njava-591.html</link>
		<comments>http://www.njava.com/njava-591.html#comments</comments>
		<pubDate>Sat, 07 Apr 2012 03:43:48 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[工具]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=591</guid>
		<description><![CDATA[defaults read /Applications/Safari.app/Contents/Info LSEnvironment
defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES
如果都是does not exist，那么没有中毒，哇哈哈
]]></description>
			<content:encoded><![CDATA[<p>defaults read /Applications/Safari.app/Contents/Info LSEnvironment<br />
defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES</p>
<p>如果都是does not exist，那么没有中毒，哇哈哈</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-591.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>合理计算mysql最大连接数max_connections</title>
		<link>http://www.njava.com/njava-589.html</link>
		<comments>http://www.njava.com/njava-589.html#comments</comments>
		<pubDate>Wed, 04 Apr 2012 05:27:40 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=589</guid>
		<description><![CDATA[mysql经常出现MySQL: ERROR 1040: Too many connections，需要重新设置max_connections怎么才算合理呢？
１　查看当前mysql最大连接数
show global status like &#8216;Max_used_connections&#8217;;
２　设置max_connections值:Max_used_connections/max_connections=80%
]]></description>
			<content:encoded><![CDATA[<p>mysql经常出现MySQL: ERROR 1040: Too many connections，需要重新设置max_connections怎么才算合理呢？<br />
１　查看当前mysql最大连接数<br />
show global status like &#8216;Max_used_connections&#8217;;</p>
<p>２　设置max_connections值:Max_used_connections/max_connections=80%</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-589.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决nginx＋FastCGI经常报502的问题</title>
		<link>http://www.njava.com/njava-587.html</link>
		<comments>http://www.njava.com/njava-587.html#comments</comments>
		<pubDate>Tue, 03 Apr 2012 13:24:52 +0000</pubDate>
		<dc:creator>njava</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.njava.com/?p=587</guid>
		<description><![CDATA[1查看php4-cgi打开数量

sudo netstat -anpo &#124; grep &#8220;php5-cgi&#8221; &#124; wc -l

2设置nginx.conf参数
http
{
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}
]]></description>
			<content:encoded><![CDATA[<p>1查看php4-cgi打开数量</p>
<div style="[brush:shell]">
sudo netstat -anpo | grep &#8220;php5-cgi&#8221; | wc -l
</div>
<p>2设置nginx.conf参数<br />
http<br />
{<br />
fastcgi_connect_timeout 300;<br />
fastcgi_send_timeout 300;<br />
fastcgi_read_timeout 300;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njava.com/njava-587.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

