J2EE搭建云服务器
JDK 安装
1. 查看当前云服务器系统版本信息
```bash
uname -a
```
2. 下载并安装JDK
[Oracle官网JDK下载链接](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
```bash
wget http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1504343731_c3e116a1d6b955e51a473f423afebb8b
```
[JDK安装参考这篇文章](http://blog.csdn.net/w627947015/article/details/69389465)
Tomcat安装
1. 下载
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.81/bin/apache-tomcat-7.0.81.tar.gz
2. 解压缩安装包
tar -zxf apache-tomcat-7.0.81.tar.gz
3. 运行
cd apache-tomcat-7.0.81/bin/
./startup.sh
4. 验证结果
用浏览器能正常打开云服务器8080端口Tomcat页面,我这里是: http://116.196.111.53:8080/
MySql安装
命令安装
apt-get install mysql-server
结果验证
netstat -tap | grep mysql
登陆mysql数据库
mysql -u root -p
查看当前的数据库
show databases;