1.安装phpstudy
PHP study官网地址有介绍http://lamp.phpstudy.net(首先要下一个xshell软件)
打开xshell,连接你的服务器,ssh root@xx.xx.xx.xx,连接你的ip地址,如下图所示
1.1. wget -c http://lamp.phpstudy.net/phpstudy.bin #下载phpstudy
1.2. chmod +x phpstudy.bin #权限设置
1.3. ./phpstudy.bin #运行安装(时间有点小久,大概二十分钟左右) ,安装时间看配置而定
安装好之后运行下程序,phpstudy start
1.4. phpstudy (start|stop|restart) #phpstudy 开启 关闭 重启
1.5. phpstudy (add|del) # phpstudy 添加站点 删除站点
下面提示输入你的域名(域名需要解析