<?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>ubuntu,debian,redhat -linuxany.com &#187; 2. LinuxOS</title>
	<atom:link href="http://www.linuxany.com/archives/category/linuxos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description>ubuntu,debian,redhat,fedora,centos</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:01:19 +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>linux目录数和文件数限制(目录下最大文件数)</title>
		<link>http://www.linuxany.com/archives/1304.html</link>
		<comments>http://www.linuxany.com/archives/1304.html#comments</comments>
		<pubDate>Wed, 02 Jun 2010 02:11:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[loopback]]></category>
		<category><![CDATA[mkfs]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1304</guid>
		<description><![CDATA[一、目录数限制：
在同一个路径下，一级子目录的个数限制为 31998 。如果你的应用生成的目录可能会超过这个数，那要注意进行目录分级。例如，如果目录名为数字的话，可以将数字除以10000后的整数值做为父目录名(/data/1/13892)；如果是目录名为字幕的，可以用前几个字符来做为父一级目录(/data/com/linuxany)等等
解决方法：
 得到一个目录下一级子目录的总数   
ls&#160; &#160;-F&#160; &#160;&#124;&#160; &#160;grep&#160; &#160;/&#160; &#160;&#124;wc

二、 文件数目限制：
每个文件对应一个inodes ,如果iodes没有了，那就算有空间也不能再写文件了。
查看当前分区的iodes信息:
tune2fs -l /dev/hda2 Free inodes:&#160; &#160; &#160; &#160; &#160; &#160; &#160; 374919
解决办法：
  1.   重新mkfs，mkfs时将inode数调的多一些（根据你fs中文件的总数而定），块尺寸调得小一些（根据每个文件的平均大小而定）   
  2.   使用loopback文件系统临时解决
        在/usr中（也可以在别处）创建一个大文件，然后做成loopback文件系统，将原来的文件移到这个文件系统中，并将它mount到/usr下合适的位置。这样可以大大减少你/usr中的文件数目。但是系统性能会有点损失。
您还可能感兴趣的内容制作USB版的Debian无损转换ext3到ext4(UBUNTU)]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1304.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vim里用gdb调试的两种方式</title>
		<link>http://www.linuxany.com/archives/1299.html</link>
		<comments>http://www.linuxany.com/archives/1299.html#comments</comments>
		<pubDate>Wed, 26 May 2010 17:51:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[gdb]]></category>
		<category><![CDATA[pyclewn]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1299</guid>
		<description><![CDATA[gdb是很好的程序调试器，而vim是强大的文本编辑器。如果两者能紧密的结合在一起，将会给调试程序带来极大的便利。事实上这件事早有人帮助完成了，下面简单介绍两种方式－－gdbvim插件方式和pyclewn方式。
gdbvim插件方式 
该方式比较简单，它只需要下载一个vim插件和一个可执行的perl文件即可以正常使用。其原理就是封装gdb,把gdb执行的动作引起的代码记号发给vim的服务端端口,从而让源代码在vim中显示，并跟踪位置。这就要求vim支持命令服务器(+clientserver)和信号标记(+signs)功能,如果vim不支持，请重新编译安装vim或者直接安装发行版提供的vim巨型版。

小提示：
使用如下方法检测vim是否支持clientserver和signs,前面有+号表示支持，-号表示不支持。
www@linuxany.com:/tmp$ vim –version &#124;grep -o ‘+clientserver\&#124;+signs’
到vim官方的插件库中去下载gdbvim插件，下载的文件中包括两个文件gdbvim和gdbvim.vim,gdbvim就是封装gdb的一个perl程序，将其放到你系统的执行路径下($PATH中的任意目录），如果不放也可以，只是要你在执行时写明路径。gdbvim.vim是vim对应的插件，将其放到你vim的插件目录下(linux里用户自己的插件目录是~/.vim/plugin,可以参看vim的帮助:h plugin)。
上述完成之后，就可以正常使用了gdbvim了。最简单的使用就是直接执行gdbvim，gdbvim会自动检测有没有vim运行作为命令服务器，如果没有检测到命令服务器的存在，它会以gvim的形式创建一个vim的命令服务器。接下来你就能正常使用它了。如果你不想gdbvim自动去启动gvim，你可以选择如下方案：
#让vim以命令服务器方式启动，服务器名为test。
www@linuxany.com:/tmp$ vim –servername test
#查看当前vim的命令服务器的列表。
www@linuxany.com:/tmp$ vim –serverlist
#上面的列表中的名字都是大写的，所以下面用了大写的TEST,这个原因还不太清楚,反正以–serverlist出来的列表为准。
www@linuxany.com:/tmp$ gdbvim –server=TEST
到此，gdbvim就可以正常使用了。
pyclewn方式 
该方式的要求比较多一点，首先要求python环境(python2.4+)，其次要求vim在7.0+,有支持netbeans_intg和autocmd。只要前面的两个需求满足了，安装pyclew是很容易的事。下面是安装步骤，可以参考pyclewn官方的安装说明。
www@linuxany.com:~/source/soft_source$ tar xf pyclewn-1.1.tar.gzwww@linuxany.com:~/source/soft_source$ cd pyclewn-1.1/www@linuxany.com:~/source/soft_source/pyclewn-1.1$ sudo python setup.py install –force
#如果不想安装到全局的，可以选择只安装给当前用户
www@linuxany.com:~/source/soft_source/pyclewn-1.1$ vimdir=$HOME/.vim python setup.py install –force –home=$HOME
完成后，直接运行pyclewn,默认为打开一个gvim窗口，在这个窗口里要先打开一个文件(:e /path/to/source.c),然后在vim的命令行模式下执行pyclew封装过后的gdb命令(均在gdb的指令前加上了大C的前缀，默认为这个大C，这个也可以重新设置的，见pyclew -h)。当然了pyclew对这些命令默认作为了键映射，可以用:Cmapkeys打开它，这样就可以使用快捷键来替换输入:Cnext等之类的命令。到此pyclewn就正常使用了。
您还可能感兴趣的内容vim中设置文件编码在vim/vi中快速执行php或c/c++的方法How to hide commentslinux c/c++ GDB教程详解vim 的语法加亮]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1299.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim中设置文件编码</title>
		<link>http://www.linuxany.com/archives/1288.html</link>
		<comments>http://www.linuxany.com/archives/1288.html#comments</comments>
		<pubDate>Wed, 26 May 2010 12:44:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[fileencoding]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1288</guid>
		<description><![CDATA[1.在vim中，查看当前文件编码格式
:set fileencoding
2.转换文件编码
:set fileencoding=utf-8
3.iconv转换编码
www@linuxany.com iconv -f gbk -t utf-8 gbk.txt &#62; utf-8.txt
4.乱码解决方法
在.vimrc中添加如下代码
set fileencodings=utf-8,cp936,big5,euc-jp,euc-kr,latin1,ucs-bomset fileencoding=utf-8
您还可能感兴趣的内容在vim里用gdb调试的两种方式在vim/vi中快速执行php或c/c++的方法How to hide commentsvim 的语法加亮]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1288.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian上安装SVN</title>
		<link>http://www.linuxany.com/archives/1246.html</link>
		<comments>http://www.linuxany.com/archives/1246.html#comments</comments>
		<pubDate>Fri, 16 Apr 2010 01:54:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Java/jsp]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[subersion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnadmin]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1246</guid>
		<description><![CDATA[版本信息：
Debain: 5.0
Kernel: 2.6.26-1-686
Subversion: 1.5.6
Apache: 2.2.11
服务端：
1、安装
apt-get install subversion subversion-toolsapt-get install apache2 libapache2-svn

2、项目
mkdir /opt/linuxany -psvnadmin create /opt/linuxany/test1svnadmin create /opt/linuxany/test2
3、配置
1)vi /etc/apache2/httpd.conf
#注意以下2行可能已在apache2中有配置了，如果restart时候发现错误，则注释掉即可LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so#svn连接到服务器后的根目录，即/等同于/opt/linuxany(例如：svn list http://IP/test1)；若此处为/svn，则/svn等同于/opt/linuxany(例如：svn list http://IP/svn/test1)[Location /] DAV svnSVNParentPath /opt/linuxany #[项目根目录]AuthzSVNAccessFile /opt/linuxany/authz.conf #[用户权限配置文件]AuthType BasicAuthName &#34;Subversion.zoneyump&#34;AuthUserFile /opt/linuxany/authfile #[用户密码配置文件]Require valid-user[/Location]
2)vi /opt/linuxany/authz.conf
[test1:/]&#160; &#160; #[/opt/linuxany/test1下所有文件及目录]* = [所有用户都没有权限]lb = rw [lb用户用读写权限][test2:/]* = r&#160; &#160; &#160; &#160;#[所有用户都只有读权限]lb = rw
3)生成authfile文件及添加用户
htpasswd -c /opt/linuxany/authfile [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1246.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Debian5编译环境头文件异常的办法</title>
		<link>http://www.linuxany.com/archives/1227.html</link>
		<comments>http://www.linuxany.com/archives/1227.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 00:43:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[cdt]]></category>
		<category><![CDATA[debian5]]></category>
		<category><![CDATA[ECLIPSE]]></category>
		<category><![CDATA[g++]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[include]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1227</guid>
		<description><![CDATA[在编译时使用下列包含位置即可：（注意顺序）
适用于gcc,g++
32位：
/usr/local/include/usr/lib/gcc/i486-linux-gnu/4.3.2/include/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/usr/include
64位
/usr/local/include/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include-fixed/usr/include
您还可能感兴趣的内容Eclipse + CDT + MinGW + MySQL环境搭建解决方案Python调用Linux下的动态库(so)Eclipse SVN插件比较 Subclipse vs Subversive[原创]玩转Debian5——安装(LXDE桌面)Linux 守护进程的编程方法  ]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1227.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
