vmware下nginx+php环境搭建札记
第一步:下载安装 vmware workstation 11
第二步:ubuntu官网下载ubuntu server镜像
第三步:在vmware创建虚拟机
1)为了简单选择【典型】->稍后安装操作系统
2)客户机操作系统选择linux 版本选择:ubuntu 64位
3)设置虚拟机名称及安装位置
4)根据电脑配置指定磁盘容量,选择将虚拟磁盘存储为单个文件
5)关键:点击自定义硬件->CD/DVD ->连接:使用ISO映像文件,选择下载好的ubuntu映像文件
6)之后就开始安装ubuntu系统(选择安装openssh)
第四步:安装ubuntu之后,设置ip地址、网关、DNS
1)nano /etc/network/interfaces
2)nano /etc/resolv.conf
3)/etc/ini重启网络
第五步:安装nginx ,php
1)sudo apt-get update #更新系统包的索引文件
2) sudo apt-cache search nginx #比对nginx版本
3)sudo apt-get install python-software-properties #安装第三方软件包
sudo add-apt-repository ppa:ondrej/php5
4)sudo apt-get update
5)sudo a
第一步:下载安装 vmware workstation 11
第二步:ubuntu官网下载ubuntu server镜像
第三步:在vmware创建虚拟机
1)为了简单选择【典型】->稍后安装操作系统
2)客户机操作系统选择linux 版本选择:ubuntu 64位
3)设置虚拟机名称及安装位置
4)根据电脑配置指定磁盘容量,选择将虚拟磁盘存储为单个文件
5)关键:点击自定义硬件->CD/DVD ->连接:使用ISO映像文件,选择下载好的ubuntu映像文件
6)之后就开始安装ubuntu系统(选择安装openssh)
第四步:安装ubuntu之后,设置ip地址、网关、DNS
1)nano /etc/network/interfaces
2)nano /etc/resolv.conf
3)/etc/ini重启网络
第五步:安装nginx ,php
1)sudo apt-get update #更新系统包的索引文件
2) sudo apt-cache search nginx #比对nginx版本
3)sudo apt-get install python-software-properties #安装第三方软件包
sudo add-apt-repository ppa:ondrej/php5
4)sudo apt-get update
5)sudo a