`
lxj8749
  • 浏览: 64285 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

虚拟机ubuntu系统,putty连接

 
阅读更多
按照默认步骤安装系统
 
1.需正常安装了vmware Tools,才能显示图形界面,否则进入后只有命令行 (ctrl+alt+T打开命令行)
2.打开编辑->虚拟网络编辑器,把vmnet0改为桥接模式,其它的网络可以删除
3.进入虚拟机里,安装openssh-server,命令:sudo apt-get install openssh-server (安装完运行ssh localhost,不确定是否必须运行)
4.虚拟机运行 ifconfig查看虚拟机ip
5.直接连接虚拟机的ip,输入管理员帐号密码可连接上
 
 
安装php环境
wget -c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && cd lnmp1.1-full && ./ubuntu.sh
 
 
让nginx支持pathinfo
修改 /usr/local/nginx/conf/nginx.conf
location ~ \.php {
                        fastcgi_pass  unix:/tmp/php-cgi.sock;
                        fastcgi_index  index.php;
                        include        fastcgi.conf;
                        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                        set $path_info $fastcgi_path_info;
                        fastcgi_param PATH_INFO       $path_info;
               }
执行:/etc/init.d/nginx restart 重启nginx
 
 
 
安装ftp
执行:./pureftpd.sh 安装,http://yourIP/ftp/ 进行管理。
 
网站目录
/home/wwwroot/default/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics