<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>百里挑一</title> 
<link>http://www.admin99.net/index.php</link> 
<description>linux命令 &#124; seo优化技术 &#124; linux系统管理员指南 --我的学习园地</description> 
<language>zh-cn</language> 
<copyright>Powered by Bo-blog 2.0.2 sp2</copyright>
<item>
<link>http://www.admin99.net/read.php?467</link>
<title>linux 下安装配置 mrtg</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>linux系统相关</category>
<pubDate>Wed, 03 Mar 2010 06:23:12 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?467</guid> 
<description>
<![CDATA[ 
	因为要画图，所以系统中要先安装gd-devel libpng-devel libjpeg-devel<br/>交换机地址是192.168.2.10<br/>本机地址是 &nbsp; &nbsp;192.168.2.9<br/>安装<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">cd /usr/src<br/>wget http://oss.oetiker.ch/mrtg/pub/mrtg-2.16.3.tar.gz<br/>tar xzf mrtg-2.16.3.tar.gz<br/>cd mrtg-2.16.3<br/>./configure --prefix=/usr/local/mrtg <br/>make;make install<br/></div></div><br/>配置<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">mkdir /usr/local/mrtg/html<br/>cp -rp /usr/src/mrtg-2.16.3/images/* /usr/local/mrtg/html/<br/>创建配置文件<br/>/usr/local/mrtg/bin/cfgmaker public@192.168.2.10 --global "workdir: /usr/local/mrtg/html" --output=/usr/local/mrtg/switch.cfg<br/>默认是以bytes为流量单位的，图片是往右走的。如果需要更改，修改switch.cfg，大概16行的地方<br/># Options[_]: growright, bits<br/>改为<br/>Options[_]: growright, bits<br/>建立首页<br/>/usr/local/mrtg/bin/indexmaker --output=/usr/local/mrtg/html/index.html --title="bandwith useage" /usr/local/mrtg/switch.cfg<br/>生成图片等，刚开始多执行几次，大概两三次没有error了就好了<br/>env LANG=C /usr/local/mrtg/bin/mrtg /usr/local/mrtg/switch.cfg<br/></div></div><br/>设置个虚拟主机指向到/usr/local/mrtg/html/就可以访问了，别忘了加验证<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86" rel="tag">系统管理</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?466</link>
<title>安装magickwand</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>php</category>
<pubDate>Mon, 01 Mar 2010 08:52:45 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?466</guid> 
<description>
<![CDATA[ 
	如果服务器上没安装imagemagick，需要先安装<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>cd /usr/src<br/>wget http://image_magick.veidrodis.com/image_magick/ImageMagick-6.5.9-0.tar.gz<br/>tar xzf ImageMagick-6.5.9-0.tar.gz <br/>cd ImageMagick-6.5.9-0<br/>./configure -enable-shared -enable-lzw -without-perl -with-modules<br/>make<br/>make install</div></div><br/>安装magickwand<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>cd /usr/src<br/>wget http://www.magickwand.org/download/php/MagickWandForPHP-1.0.7.tar.gz<br/>tar xzf MagickWandForPHP-1.0.7.tar.gz <br/>cd MagickWandForPHP-1.0.7<br/>/usr/local/php-fpm/bin/phpize <br/>./configure -with-php-config=/usr/local/php/bin/php-config -enable-shared -with-magickwand=/usr/local<br/>make<br/>make install<br/></div></div><br/>编辑php.ini<br/>vi /usr/local/php/lib/php.ini<br/>添加<br/>extension="magickwand.so"<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=php" rel="tag">php</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?465</link>
<title>dell R410 安装网卡驱动</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>linux系统相关</category>
<pubDate>Mon, 25 Jan 2010 04:39:02 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?465</guid> 
<description>
<![CDATA[ 
	先到dell网站下载Bcom_LAN_12.8.1_Linux_Source_A00.tar.gz，通过u盘copy到/usr/src中<br/>cd /usr/src/<br/>tar xzvf Bcom_LAN_12.8.1_Linux_Source_A00.tar.gz <br/>cd Bcom_LAN_12.8.1_Linux_Source_A00/NetXtremeII/<br/>tar xzvf netxtreme2-4.8.21.tar.gz <br/>cd netxtreme2-4.8.21/bnx2-1.8.7b/src/<br/>make<br/>make install<br/>reboot<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86" rel="tag">系统管理</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?464</link>
<title>tcrmgr的一些用法</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>tc&amp;&amp;tt</category>
<pubDate>Sun, 24 Jan 2010 15:24:42 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?464</guid> 
<description>
<![CDATA[ 
	1. 查看服务器统计信息<br/>tcrmgr inform -port 11211 -st 192.168.1.25<br/><br/>2. 写入数据<br/>tcrmgr put -port 11211 192.168.1.25 test value<br/><br/>3. 读取数据<br/>tcrmgr get -port 11211 192.168.1.25 test<br/><br/>4. 删除数据<br/>tcrmgr out -port 11211 192.168.1.25 test<br/><br/>5. 查看所有的key<br/>tcrmgr list -port 11211 192.168.1.25<br/><br/>6. 备份数据<br/>注意：路径是服务器上的绝对路径，否则显示“./tcrmgr: error: 9999: miscellaneous error”<br/>tcrmgr copy -port 11211 192.168.1.25 /backup/backup.tch<br/><br/>7. 日志导出(屏幕上打印，十六进制字符串格式)<br/>注意：目录是服务器上的ulog的绝对路径<br/>ttulmgr export /data/ttserver/ulog/<br/><br/>8. 同步内存数据到磁盘（当使用异步io时将缓存的数据写入磁盘）<br/>tcrmgr sync -port 11211 192.168.1.25<br/><br/>9. 数据导入<br/>注意：tsv格式的文件以TAB分隔，如：test2&#92;tvalue2&#92;n<br/>注意：路径是本地路径，所以不必是绝对路径<br/>tcrmgr importtsv -port 11211 192.168.1.25 temp/2.tsv<br/><br/>10. 通过ulog日志恢复数据<br/>注意：路径是服务器上的绝对路径<br/>tcrmgr restore -port 11211 192.168.1.25 /data/ttserver/ulog/<br/><br/>11. &nbsp;打印更新日志（挂起，一直显示日志）<br/>可能是用于实时查看ttserver有哪些操作，相当于tail -f<br/>tcrmgr repl -port 11211 -ph 192.168.1.25<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=ttserver" rel="tag">ttserver</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?463</link>
<title>ttserver备份与恢复</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>tc&amp;&amp;tt</category>
<pubDate>Sun, 24 Jan 2010 15:19:43 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?463</guid> 
<description>
<![CDATA[ 
	备份命令可以在本机执行也可以在异地执行<br/>但备份出来的文件只能存放在本机目录。若要异地备份需要辅助用scp或rsync<br/>tcrmgr copy -port 11211 192.168.1.25 &nbsp;/backup/backup.tch<br/>恢复很简单，只需停止ttserver，将本分的数据文件替换原来的数据文件再开启ttserver即可<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=ttserver" rel="tag">ttserver</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?462</link>
<title>mysql恢复</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>mysql</category>
<pubDate>Wed, 20 Jan 2010 10:21:33 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?462</guid> 
<description>
<![CDATA[ 
	mysqldump备份<br/>多个数据库<br/>恢复其中的一个<br/>找到该数据库在.sql文件中的位置<br/>grep -n "CREATE DATABASE" mysqldata.20100109.sql &#124;grep -v help_topic<br/>将改数据库的内容拿出来，注意前后可能要增加或减少几行<br/>sed -n '85082,97412p' mysqldata.20100109.sql > views.20100109.sql &<br/>然后导入<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=mysql" rel="tag">mysql</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?461</link>
<title>nginx中虚拟目录的配置</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>nginx</category>
<pubDate>Tue, 19 Jan 2010 09:13:50 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?461</guid> 
<description>
<![CDATA[ 
	location /abc/ {<br/>alias /home/html/abc/;<br/>}<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=nginx" rel="tag">nginx</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?460</link>
<title>nginx 301 重定向</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>nginx</category>
<pubDate>Tue, 19 Jan 2010 09:13:09 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?460</guid> 
<description>
<![CDATA[ 
	server {<br/> &nbsp; &nbsp;server_name admin99.net www.admin99.net;<br/><br/> &nbsp; &nbsp;if ($host != 'admin99.net' ) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;rewrite &nbsp;^/(.*)$ &nbsp;http://admin99.net/$1 &nbsp;permanent;<br/> &nbsp; &nbsp;}<br/>}<br/><br/>Tags - <a href="http://www.admin99.net/tag.php?tag=nginx" rel="tag">nginx</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?459</link>
<title>svn: Valid UTF-8 data 错误的解决</title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>svn</category>
<pubDate>Tue, 19 Jan 2010 02:49:17 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?459</guid> 
<description>
<![CDATA[ 
	有时候，我们在项目svn提交时会出现这样的错误，<br/>svn: Valid UTF-8 data<br/>(hex: 47 64 20 53 63)<br/>followed by invalid UTF-8 sequence<br/>(hex: e9 6e 69 63)<br/><br/>这样的错误的原因是所提交的文件中包含非utf8的编码， 假如你知道该非utf8编码是什么编码类型的话（例如 ：iso-8859-15），可以这样解决这个错误：<br/><br/>convmv -r -f iso-8859-15 -t utf8 --notest -i /my/project/path<br/><br/>convmv命令可通过 yum -y install convmv来安装<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=svn" rel="tag">svn</a>
  ]]> 
</description>
</item><item>
<link>http://www.admin99.net/read.php?458</link>
<title>svn: Unrecognized URL scheme 问题的解决 </title> 
<author>real &lt;real@admin99.net&gt;</author>
<category>svn</category>
<pubDate>Tue, 19 Jan 2010 02:48:02 +0000</pubDate> 
<guid>http://www.admin99.net/read.php?458</guid> 
<description>
<![CDATA[ 
	默认安装的svn会支持两种导入导出方式 ra_svn ra_local分别是svn协议和本地文件导入导出<br/>如果要通过http协议导入导出，比如<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">svn import /data/htdocs/admin99 http://192.168.1.100:519/svn/admin99/ -m "initial import" --username='admin99' --password='admin99'</div></div><br/>就会报上面的错误<br/>解决的办法是安装neon<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">cd /usr/src<br/>wget http://www.webdav.org/neon/neon-0.25.5.tar.gz<br/>tar -xvzf neon-0.25.5.tar.gz<br/>mv neon-0.25.5 neon</div></div><br/>将neon移到subversion的源文件的根目录中，重新编译安装subversion即可<br/>然后运行 svn --version 能看到已经多了一个模块ra_neon出来<br/><br/>svn, version 1.5.4 (r33841)<br/> &nbsp; compiled Jan 19 2010, 09:52:57<br/><br/>Copyright (C) 2000-2008 CollabNet.<br/>Subversion is open source software, see http://subversion.tigris.org/<br/>This product includes software developed by CollabNet (http://www.Collab.Net/).<br/><br/>The following repository access (RA) modules are available:<br/><br/>* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.<br/> &nbsp;- handles 'http' scheme<br/>* ra_svn : Module for accessing a repository using the svn network protocol.<br/> &nbsp;- handles 'svn' scheme<br/>* ra_local : Module for accessing a repository on local disk.<br/> &nbsp;- handles 'file' scheme<br/>Tags - <a href="http://www.admin99.net/tag.php?tag=svn" rel="tag">svn</a>
  ]]> 
</description>
</item>
</channel>
</rss>