Rumah >pembangunan bahagian belakang >tutorial php >ubuntu 15 搭建php开发环境
安装中文输入法(参考百度经验)
<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>
安装 curl 拓展
<code>sudo apt<span>-get</span> install curl libcurl3 libcurl3<span>-dev</span> php5<span>-curl</span></code>
安装SVN
<code><span>sudo</span> apt-get install subversion subversion-tools <span>#输入svn --version 检测时否安装成功</span></code>
版权声明:知识取之于民,用之于民!欢迎转载,转载请开头附上本文链接,不定期更新文章!
以上就介绍了ubuntu 15 搭建php开发环境,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。