安裝中文輸入法(參考百度經驗)
<code><span>http:</span>//jingyan<span>.baidu</span><span>.com</span>/article/ad310e80ae6d971849f49ed3<span>.html</span></code>
安裝右鍵terminal
<code><span>1.</span>打开一个Terminal(ctrl<span>+</span>alt<span>+</span>t),输入如下指令 sudo apt<span>-get</span> install nautilus<span>-open</span><span>-terminal</span><span>2.</span>使用以下指令来重启Nautilus nautilus <span>-q</span> 或者安装一个非常好用的 terminal : Guake Terminal </code>
搭建lamp開發環境
<code><span>sudo</span> apt-get install apache2 <span>#安装apache </span><span>sudo</span> apt-get install php5 <span>#安装php和apache的php模块</span><span>sudo</span> apt-get install mysql-server mysql-client <span>#安装mysql服务端和客户端</span><span>sudo</span> apt-get install php5-memcache <span>#安装PHP的memcached拓展</span></code>
安裝memcache
<code><span>sudo</span> apt-get install memcached <span>#安装php memcached 扩展</span> memcached <span>-d</span> -m <span>50</span> -p <span>11211</span> -u root <span>#启动一个memcached服务</span><span>-d</span> 是启动一个守护进程 -m 指定使用多少兆的缓存空间;-p 指定要监听的端口; -u 指定以哪个用户来运行<span>-l</span> 是监听的服务器ip地址,默认为<span>127.0</span>.<span>0.1</span> -c是最大并发连接数,默认<span>1024</span> -P是保存pid文件 如/tmp/memcached.pid ->使用telnet测试 memcached 服务 $ telnet localhost <span>11211</span> Trying <span>127.0</span>.<span>0.1</span>...Connected to localhost.</code>
之於民,用之於民!歡迎轉載,轉載請開頭附上本文鏈接,不定期更新文章!
以上就介紹了ubuntu 15 搭建php開發環境,包含了方面的內容,希望對PHP教程有興趣的朋友有幫助。