WinXP下搭建virtualbox+ubuntu10.04+LAMP+tomcat6环境小记
来源:互联网 发布:阴囊不舒服知乎 编辑:程序博客网 时间:2024/05/19 06:49
1、下载virtualbox最新版本3.2.2
http://www.virtualbox.org/wiki/Downloads
-> VirtualBox 3.2.2 for Windows hosts x86/amd64
2、下载ubuntu10.04 cd image for windows installation(*.iso 文件)
http://www.ubuntu.org.cn/getubuntu/download/
3、安装好virtualbox后,新建虚拟机,然后在设置过程中选择iso文件进行安装
4、安装完成后,打开system->administration->synaptic package manager,从Edit菜单中选择以task安装package
5、选择LAMP+tomcat server(this is for java)任务,并Apply进行相关软件包的安装
6、LAMP+tomcat安装完后,测试一下PHP, http://localhost:80/,应该好了。
7、接着设置Tomcat,添加管理员帐户,这个需要root帐户权限。使用sudo passwd root设置root用户密码
8、切换到root用户,修改tomcat的用户配置文件tomcat-users.xml,添加
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="" roles="admin,manager"/>
9、把Tomcat目录设置为可读写: chmod 777 tomcat6
10、重启tomcat服务,不要直接使用shutdown.sh/startup.sh,否则可能会出现如下错误:
java.io.filenotfoundexception: /user/share/tomcat6/conf/server.xml(no such file or directory)
实际这个文件在etc/tomcat6下,使用系统服务来重启即可:
service tomcat6 stop
service tomcat6 start
11、测试Tomcat,http://localhost:8080/
这样ubuntu下php和java环境都搭建好了。
- WinXP下搭建virtualbox+ubuntu10.04+LAMP+tomcat6环境小记
- virtualBox ubuntu10.04 搭建环境
- ubuntu10.04 下LAMP的搭建安装
- ubuntu10.04下设置LAMP环境
- ubuntu10.04 安装lamp环境
- ubuntu10.04下android开发环境搭建
- Ubuntu10.04下Android开发环境搭建
- Ubuntu10.04下Android开发环境搭建
- Ubuntu10.04下Android开发环境搭建
- ubuntu10.04下搭建EclipseC/C++环境
- Ubuntu10.10下安装lamp环境
- ubuntu10.04下安装LAMP
- UBUNTU10.04 下安装 lamp
- ubuntu10.04下安装LAMP
- Ubuntu14.04下搭建LAMP环境
- UbuntuServer14.04下搭建LAMP环境
- Ubuntu16.04下LAMP环境搭建
- Ubuntu14.04下搭建LAMP环境
- zip file unzip file demo
- 笔记本共享上网(A有线,B通过无线与A相连)
- 用jquery.validate.js验证表单
- 关于ARM的中断服务程序
- 创建模式:Factory Method工厂模式
- WinXP下搭建virtualbox+ubuntu10.04+LAMP+tomcat6环境小记
- Google Web Toolkit 和 Google App Engine 综合教程 界面篇
- Cadence手工创建PCB元件
- Google Web Toolkit 和 Google App Engine 综合教程 存储篇
- Building and deploying a basic WDF Kernel Mode Driver
- STL Tips
- ORA-12913
- Developing a WDF USB Kernel Mode Driver for the OSR USB FX2
- Google Web Toolkit 和 Google App Engine 综合教程 交互篇