易学项目linux部署 PDF 下载
下载地址:
提取码:lg3b
相关截图:
主要内容:
1.安装JDK
tar -xvf jdk-8u91-linux-i586.tar.gz
1.1配置环境变量
vim /etc/profile
JAVA_HOME=/home/software/jdk1.8.0_91
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME PATH CLASSPATH
1.2让环境变量立即生效
source /etc/profile
1.3jdk配置是否成功
java –version
2.安装TOMCAT
2.1把tomcat安装包拖到software文件夹下
2.2解压tomcat
tar -xvf apache-tomcat-8.0.35.tar.gz
2.3修改名称
mv apache-tomcat-8.0.35 tomcat8
2.4启动tomcat
sh startup.sh
2.5关闭防火墙
service iptables stop
CentOs7:
查看防火墙的状态 systemctl status firewalld.service
关闭防火墙 systemctl stop firewalld.service
开机禁用防火墙 systemctl disable firewalld.service
开启启动防火墙 systemctl enable firewalld.service
启动防火墙 systemctl start firewalld.service
2.6开启对外端口
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
3.安装Mysql
3.1创建mysql目录 mysql
mkdir mysql
mv Percona-Server-5.6.24-72.2-r8d0f85b-el6-x86_64-bundle.tar mysql/
3.2解压文件
tar -xvf Percona-Server-5.6.24-72.2-r8d0f85b-el6-x86_64-bundle.tar
centos7.7:提前安装如下软件
yum install perl
yum install libaio
yum install autoconf
因为linux中自带一个mysql数据库叫mariadb,因此要删掉
rpm -e --nodeps mariadb-libs-1:5.5.64-1.el7.x86_64
必须按照顺序安装下列rpm
1.rpm -ivh Percona-Server-56-debuginfo-5.6.24-rel72.2.el6.x86_64.rpm
2.rpm -ivh Percona-Server-shared-56-5.6.24-rel72.2.el6.x86_64.rpm
3.rpm -ivh Percona-Server-client-56-5.6.24-rel72.2.el6.x86_64.rpm
4.rpm -ivh Percona-Server-server-56-5.6.24-rel72.2.el6.x86_64.rpm
3.3启动mysql服务
service mysql start
可能需要
ps -A kill -9 mysql的进程id 然后重新启动mysql服务
Systemctl start mysql.service
3.4登陆mysql
mysql 进入后exit
3.5设置mysql用户名密码
mysqladmin -u root password "root"
3.6登陆mysql
mysql -u root –p
3.7创建数据库(略)
create database tesdb;