下载一键安装包

下载地址:h t tp:// w w w.p h p st u dy.n et/a. php/208 .html

安装过程

开启终端

更改文件权限 chmod +x phpstudy

进行安装 ./phpstudy.bin

根据自己计算机的配置和网速,会自动进行下载安装

安装完后是这样的:

==================================================================================================================================================mysqld[Success]mysqld[成功]httpd[Success]httpd[成功]phpstudyinstallcompleted,66min.phpStudy安装完成,用时66分钟=========================================================================phpStudyForlinux2014=========================================================================phpStudyLinux版&Win版同步上线支持Apache/Nginx/Tengine/Lighttpd/IIS7/8/6服务进程管理:phpstudy(start|stop|restart|uninstall)站点主机管理:phpstudy(add|del|list)ftpd用户管理:phpstudyftp(add|del|list)更多信息请访问http://www.phpstudy.net/=========================================================================使用方法看看phpstudy目录,如下操作

先看看我的目录

erdao@erdao-Aspire-4755:~$ls-l总用量48-rw-r--r--1erdaoerdao89801月420:49examples.desktopdrwxrwxrwx6erdaoerdao40961月521:55mycodedrwxr-xr-x2erdaoerdao40961月421:08公共的drwxr-xr-x2erdaoerdao40961月421:08模板drwxr-xr-x2erdaoerdao40961月421:08视频drwxr-xr-x2erdaoerdao40961月621:59图片drwxr-xr-x3erdaoerdao40961月917:55文档drwxr-xr-x3erdaoerdao40961月918:01下载drwxr-xr-x2erdaoerdao40961月421:08音乐drwxr-xr-x2erdaoerdao40961月421:08桌面

切换至根目录,找到phpstudy目录,看看目录结构

erdao@erdao-Aspire-4755:/$cd/erdao@erdao-Aspire-4755:/$lsbindevinitrd.imglost+foundoptrootsrvusrbootetclibmediaphpstudyrunsysvarcdromhomelib64mntprocsbintmpvmlinuzerdao@erdao-Aspire-4755:/$cdphpstudy/erdao@erdao-Aspire-4755:/phpstudy$lsbackupdatalogmysqlphpstudy.shserverwww

启动或停止phpstudy
服务进程管理:phpstudy (start|stop|restart|uninstall)
站点主机管理:phpstudy (add|del|list)
ftpd用户管理:phpstudy ftp (add|del|list)

查看一下phpstudy下www目录下现有的一个站

erdao@erdao-Aspire-4755:/phpstudy$cdwww/erdao@erdao-Aspire-4755:/phpstudy/www$lsindex.phpphpinfo.phpphpmyadminerdao@erdao-Aspire-4755:/phpstudy/www$cdphpmyadmin/erdao@erdao-Aspire-4755:/phpstudy/www/phpmyadmin$ls

启动phpstudy(phpstudy start),启动浏览器,输入127.0.0.1/phpmyadmin
如果正常进入了,说明安装成功了,可以进行web开发了
以后将工程放到www下即可