一、安装Linux系统
工具:VMware 虚拟机
Linux镜像ISO文件
1.点击创建新的虚拟机,如图操作,一直点击下一步;













2.完成后,点击编辑虚拟机设置,加入镜像文件,然后开启虚拟机;




一路next,完成Linux系统初步安装。
3.Linux系统IP配置
打开终端,修改配置:
vi /etc/sysconfig/network-scripts/ifcfg-eth0,按照下图进行修改,IPADDR地址要与你本地IP在同一网段,比如我本地IP是192.168.10.1;修改完保存,
service network restart 重启网络,测试ping通即可

4.安装mysql(利用secureFXPortable工具有本地向虚拟机进行拷贝)
1、拷贝mysql-5.6.31-linux-glibc2.5-x86_64.tar.gz到/opt目录下

2、将压缩包解夺到/usr/local目录下
# tar -zxvf mysql-5.6.31-linux-glibc2.5-x86_64.tar.gz -C /usr/local
查看解压后的目录

修改文件夹名
# mv mysql-5.6.31-linux-glibc2.5-x86_64/ mysql
3、创建mysql账户(如已存mysql账户可先删除:# userdel -rf mysql)
# useradd mysql
4、修改mysql密码

5、更改/usr/local/mysql的拥有者权限
# chown -R mysql:mysql mysql/
6、切换到mysql账户
# su - mysql
7、安装数据库
$ cd /usr/local/mysql/scripts/
$ ./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
8、配置环境变量(/etc/profile)

# source /etc/profile
9、修改配置文件
$su - root
# cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
修改/etc/my.cnf,如下图:

配置系统服务
# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
# chkconfig --add mysql
# chkconfig mysql on
10、启动mysql服务

11、设置mysql的root登录密码
# /usr/local/mysql/bin/mysqladmin -u root password 'root'
12、登录测试
# su - mysql
$ mysql -u root –p
出现如下图所示提示符,表示登录成功:

授权从本机以外的机器访问mysql

至此mysql安装配置完毕,并且可以从本机以外的任何机器以’root’密码访问mysql数据库。
5.创建软件所需数据库(利用Navicat创建数据库)
1、连接mysql数据库(如果此处链)

2、创建软件数据库

3、导入SQL文件
4、查看软件所需数据表的列表
6.JDK安装
拷贝jdk-7u71-linux-x64.tar.gz到Linux系统,如下图:

1、创建JAVA目录
# mkdir java
# cd java
2、将JDK环境解压到/opt/java目录下
# tar -zxvf ../jdk-7u71-linux-x64.tar.gz
3、修改JDK文件访问权限
# chown -R root:root jdk1.7.0_71/
4、查看JDK版本

5、修改JAVA_HOME变量

6、让profile生效
# source/etc/profile
# echo $JAVA_HOME
7.Tomcat安装
1、拷贝apache-tomcat-7.0.67.zip到/opt下,如下图:
2、创建tomcat目录

# mkdir tomcat
# cd tomcat
3、将tomcat环境解压到/opt/tomcat目录下
# unzip ../apache-tomcat-7.0.67.zip
4、修改CATALINA_HOME变量

5、让profile生效
# source/etc/profile
# echo $CATALINA_HOME
6、修改/opt/tomcat/apache-tomcat-7.0.67/bin目录权限
# cd/opt/tomcat/apache-tomcat-7.0.67/bin
# chmod 755 *
8.将项目制作成war包部署上去即可运行。