<?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 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Wed, 21 Nov 2012 02:16:32 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>Ubuntu12.04下安装Xdebug及配置</title>
		<link>https://www.mudbest.com/ubuntu12-04%e4%b8%8b%e5%ae%89%e8%a3%85xdebug%e5%8f%8a%e9%85%8d%e7%bd%ae/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Fri, 26 Oct 2012 09:45:12 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu12.04]]></category>
		<category><![CDATA[安装]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=1614</guid>

					<description><![CDATA[一: 安装xdebug，这里用pecl 二: 配置xdebug 在php.ini 中加入 在执行以上命令到最后 ... <a title="Ubuntu12.04下安装Xdebug及配置" class="read-more" href="https://www.mudbest.com/ubuntu12-04%e4%b8%8b%e5%ae%89%e8%a3%85xdebug%e5%8f%8a%e9%85%8d%e7%bd%ae/" aria-label="阅读 Ubuntu12.04下安装Xdebug及配置">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p><strong>一: 安装xdebug，这里用pecl</strong></p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get install php-pear   
sudo apt-get install php5-dev
sudo pecl install xdebug
</pre>
<p><strong>二: 配置xdebug</strong><br />
<span id="more-1614"></span></p>
<pre class="brush: plain; title: ; notranslate">
cd /etc/php5/apche2/
vi php.ini
</pre>
<p><strong>在php.ini 中加入</strong></p>
<pre class="brush: plain; title: ; notranslate">
&#x5B;php_xdebug]
zend_extension = &quot;/usr/lib/php5/20090626/xdebug.so&quot;
</pre>
<pre class="brush: plain; title: ; notranslate">
sudo pecl install xdebug
</pre>
<p>在执行以上命令到最后会提示你的xdebug.so的所在目录。</p>
<p>此外，还需在使用xdebug之前，在php.ini中指定5个xdebug特定属性</p>
<pre class="brush: plain; title: ; notranslate">
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=&quot;/var/log/xdebug&quot;
xdebug.profiler_append=On
xdebug.profiler_output_name = &quot;cachegrind&quot;
</pre>
<p>注意在xdebug.profiler_output_dir = &#8220;/var/log/xdebug&#8221;随后需要创建文件夹</p>
<pre class="brush: plain; title: ; notranslate">
cd /var/log
mkdir xdebug
chmod 777 xdebug -R
</pre>
<p>然后将PHP配置文件的html_errors开启，将错误提示清晰化显示，默认为Off</p>
<pre class="brush: plain; title: ; notranslate">
html_errors = Off
</pre>
<p>改为</p>
<pre class="brush: plain; title: ; notranslate">
html_errors = On
</pre>
<p><strong>参数说明：</strong><br />
xdebug.profiler_enable<br />
#开启（1）或关闭（0）性能分析工具<br />
xdebug.profiler_output_dir=&#8221;/var/log/xdebug&#8221;<br />
#设定效能监测信息输出文件的路径，默认路径为/tmp<br />
xdebug.profiler_output_name<br />
#所用的文件名称<br />
xdebug.profiler_append<br />
#对php脚本发出新请求时，覆盖文件（1），默认情况下此设置为关（0）<br />
xdebug.profiler_enable_trigger<br />
#允许性能分析工具开始使用一个GET/POST 或 COOKIE变量：XDEBUG_PROFIKE。xdebug.profiler_enable必须设置为0</p>
<p>具体的配置可以参考：http://xdebug.org/docs/all_settings<br />
注意：输出目录要预先建好，否则不会输出内容。<br />
重启web服务器(或php-fpm)后，在phpinfo中查看是否有xdebug的信息，有的话就成功了。</p>
<p><a href="http://www.mudbest.com/ubuntu12-04%e4%b8%8b%e5%ae%89%e8%a3%85xdebug%e5%8f%8a%e9%85%8d%e7%bd%ae/2012-10-26-xdebug/" rel="attachment wp-att-1616"><img fetchpriority="high" decoding="async" src="http://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug-1024x819.png" alt="" title="2012-10-26-xdebug" width="640" height="511" class="alignnone size-large wp-image-1616" srcset="https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug-1024x819.png 1024w, https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug-537x430.png 537w, https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug.png 1280w" sizes="(max-width: 640px) 100vw, 640px" /></a></p>
<p><a href="http://www.mudbest.com/ubuntu12-04%e4%b8%8b%e5%ae%89%e8%a3%85xdebug%e5%8f%8a%e9%85%8d%e7%bd%ae/2012-10-26-xdebug-2/" rel="attachment wp-att-1620" target="_blank"><img decoding="async" src="http://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug1-1024x819.png" alt="" title="2012-10-26-xdebug" width="640" height="511" class="alignnone size-large wp-image-1620" srcset="https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug1-1024x819.png 1024w, https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug1-537x430.png 537w, https://www.mudbest.com/wp-content/uploads/2012/10/2012-10-26-xdebug1.png 1280w" sizes="(max-width: 640px) 100vw, 640px" /></a></p>
<p>三.安装kcachegrind</p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get install kcachegrind
</pre>
<p>至此，你就可以用kcachegrind,webgrind 来分析你的PHP代码了。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ubuntu默认状态不支持Rewrite伪静态</title>
		<link>https://www.mudbest.com/ubuntu%e9%bb%98%e8%ae%a4%e7%8a%b6%e6%80%81%e4%b8%8d%e6%94%af%e6%8c%81rewrite%e4%bc%aa%e9%9d%99%e6%80%81/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Sat, 11 Jun 2011 06:42:00 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=666</guid>

					<description><![CDATA[最近在用Ubuntu测试做网站服务器，究其原因就是ubuntu的可视化操作，其实对于刚接触LINUX新手非常实 ... <a title="ubuntu默认状态不支持Rewrite伪静态" class="read-more" href="https://www.mudbest.com/ubuntu%e9%bb%98%e8%ae%a4%e7%8a%b6%e6%80%81%e4%b8%8d%e6%94%af%e6%8c%81rewrite%e4%bc%aa%e9%9d%99%e6%80%81/" aria-label="阅读 ubuntu默认状态不支持Rewrite伪静态">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>最近在用Ubuntu测试做网站服务器，究其原因就是ubuntu的可视化操作，其实对于刚接触LINUX新手非常实用。最近安装LAMP调试，发现不支持.htaccess文件，也就是伪静态。以下是开启方法</p>
<p>sudo a2enmod rewrite 开启Rewrite模块</p>
<p>最后<span id="more-666"></span>sudo /etc/init.d/apache2 restart。在网站下面建立.htaccess文件 touch .htaccess</p>
<p>修改.htaccess文件属性 chmod -R 777 .htaccess</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ubuntu解压命令全览</title>
		<link>https://www.mudbest.com/ubuntu%e8%a7%a3%e5%8e%8b%e5%91%bd%e4%bb%a4%e5%85%a8%e8%a7%88/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Tue, 07 Jun 2011 12:09:13 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=665</guid>

					<description><![CDATA[.tar 解包：tar xvf FileName.tar 打包：tar cvf FileName.tar Di ... <a title="ubuntu解压命令全览" class="read-more" href="https://www.mudbest.com/ubuntu%e8%a7%a3%e5%8e%8b%e5%91%bd%e4%bb%a4%e5%85%a8%e8%a7%88/" aria-label="阅读 ubuntu解压命令全览">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>.tar<br />
 解包：tar xvf FileName.tar<br />
 打包：tar cvf FileName.tar DirName<br />
 （注：tar是打包，不是压缩！）<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .gz<br />
 解压1：gunzip FileName.gz<br />
 解压2：gzip -d FileName.gz<br />
 压缩：gzip FileName<br />
 .tar.gz 和 .tgz<br />
 解压：tar zxvf FileName.tar.gz<br />
 压缩：tar zcvf FileName.tar.gz DirName<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .bz2<span id="more-665"></span><br />
 解压1：bzip2 -d FileName.bz2<br />
 解压2：bunzip2 FileName.bz2<br />
 压缩： bzip2 -z FileName<br />
 .tar.bz2<br />
 解压：tar jxvf FileName.tar.bz2<br />
 压缩：tar jcvf FileName.tar.bz2 DirName<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .bz<br />
 解压1：bzip2 -d FileName.bz<br />
 解压2：bunzip2 FileName.bz<br />
 压缩：未知<br />
 .tar.bz<br />
 解压：tar jxvf FileName.tar.bz<br />
 压缩：未知<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .Z<br />
 解压：uncompress FileName.Z<br />
 压缩：compress FileName<br />
 .tar.Z<br />
 解压：tar Zxvf FileName.tar.Z<br />
 压缩：tar Zcvf FileName.tar.Z DirName<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .zip<br />
 解压：unzip FileName.zip<br />
 压缩：zip FileName.zip DirName<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .rar<br />
 解压：rar x FileName.rar<br />
 压缩：rar a FileName.rar DirName</p>
<p>rar请到：http://www.rarsoft.com/download.htm 下载！<br />
 解压后请将rar_static拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：<br />
 [root@www2 tmp]# cp rar_static /usr/bin/rar<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .lha<br />
 解压：lha -e FileName.lha<br />
 压缩：lha -a FileName.lha FileName</p>
<p>lha请到：http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载！<br />
 >解压后请将lha拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：<br />
 [root@www2 tmp]# cp lha /usr/bin/<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .rpm<br />
 解包：rpm2cpio FileName.rpm | cpio -div<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .deb<br />
 解包：ar p FileName.deb data.tar.gz | tar zxf &#8211;<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 .tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea<br />
 解压：sEx x FileName.*<br />
 压缩：sEx a FileName.* FileName</p>
<p>sEx只是调用相关程序，本身并无压缩、解压功能，请注意！<br />
 sEx请到： http://sourceforge.net/projects/sex下载！<br />
 解压后请将sEx拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu下的vi编辑器不好用</title>
		<link>https://www.mudbest.com/ubuntu%e4%b8%8b%e7%9a%84vi%e7%bc%96%e8%be%91%e5%99%a8%e4%b8%8d%e5%a5%bd%e7%94%a8/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 05 Mar 2011 23:09:42 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://blog.mudbest.com/?p=433</guid>

					<description><![CDATA[默认的太不好用咯，只能这么说…… 解决： sudo aptitude remove vim-tiny 然后提示 ... <a title="Ubuntu下的vi编辑器不好用" class="read-more" href="https://www.mudbest.com/ubuntu%e4%b8%8b%e7%9a%84vi%e7%bc%96%e8%be%91%e5%99%a8%e4%b8%8d%e5%a5%bd%e7%94%a8/" aria-label="阅读 Ubuntu下的vi编辑器不好用">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>默认的太不好用咯，只能这么说……</p>
<p>解决：<br />
sudo aptitude remove vim-tiny<br />
然后提示<br />
正在读取软件包列表&#8230; 完成<br />
正在分析软件包的依赖关系树<br />
正在读取状态信息&#8230; 完成<br />
正在读取扩展状态文件<br />
正在初始化软件包状态&#8230; 完成<br />
下列软件包是“破损”的：<br />
ubuntu-minimal<br />
下列软件包将被“删除”：<br />
vim-tiny<span id="more-433"></span><br />
0 个软件包被升级，新安装 0 个， 1 个将被删除， 同时 0 个将不升级。<br />
需要获取 0B 的存档。解包后将释放 741kB。<br />
下列软件包存在未满足的依赖关系：<br />
ubuntu-minimal: 依赖: vim-tiny 但是它不是可安装的<br />
下列动作将解决这些依赖关系：</p>
<p>删除下列软件包：<br />
ubuntu-minimal</p>
<p>安装下列软件包：<br />
vim [2:7.2.330-1ubuntu3 (lucid, lucid)]<br />
vim-runtime [2:7.2.330-1ubuntu3 (lucid, lucid)]</p>
<p>分数是 97</p>
<p>是否接受该解决方案？[Y/n/q/?]<br />
下列“新”软件包将被安装。<br />
vim{a} vim-runtime{a}<br />
下列软件包将被“删除”：<br />
ubuntu-minimal{a} vim-tiny<br />
0 个软件包被升级，新安装 2 个， 2 个将被删除， 同时 0 个将不升级。<br />
需要获取 6,572kB 的存档。 解包后将要使用 26.3MB。<br />
您要继续吗？[Y/n/?]</p>
<p>也就是说，把 vim-tiny给卸载，安装一个vim 和vim-runtime</p>
<p>恩，好使多了～～</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu安装Zend Studio中文版，解决中文乱码</title>
		<link>https://www.mudbest.com/ubuntu%e5%ae%89%e8%a3%85zend-studio%e4%b8%ad%e6%96%87%e7%89%88%ef%bc%8c%e8%a7%a3%e5%86%b3%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 07 Jan 2011 18:45:10 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wine]]></category>
		<category><![CDATA[zend studio]]></category>
		<category><![CDATA[乱码]]></category>
		<guid isPermaLink="false">http://blog.mudbest.com/?p=301</guid>

					<description><![CDATA[1、先去官方下载安装Zend Studio,启动后发现，是英文版，菜单中的中文显示为口口。 2、解决乱码.把C ... <a title="Ubuntu安装Zend Studio中文版，解决中文乱码" class="read-more" href="https://www.mudbest.com/ubuntu%e5%ae%89%e8%a3%85zend-studio%e4%b8%ad%e6%96%87%e7%89%88%ef%bc%8c%e8%a7%a3%e5%86%b3%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81/" aria-label="阅读 Ubuntu安装Zend Studio中文版，解决中文乱码">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>1、先去官方下载安装Zend Studio,启动后发现，是英文版，菜单中的中文显示为口口。<br />
2、解决乱码.把C盘系统字库的中文字体simsun.ttc（宋体）复制过来改名为：LucidaSansRegular.ttf，覆盖到：/usr /local /Zend/ZendStudioClient-5.2.0/<span id="more-301"></span>jre/lib/fonts/LucidaSansRegular.ttf,重启即可解决乱码。 <!--more--><br />
3、语言设为中文。Tools-Preferences-Language设为日文，提示重启。 重启后界面即为中文</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
