天天看点

阿里云项目上线

阿里云项目上线

与linux连接

确保配置文件里面的ip地址与xshell一致

阿里云项目上线

将项目以war包的形势导出

war包导入tomcat/webapp下面,会自动导包

在mysql/bin下面service mysql start启动mysql -u root -p

在里面输入**flush privileges;再输入grant all privileges on . to ‘root’@’%’ identified by ‘root’;**以设置权限连接navicat ,

navicat连接成功

在浏览器输入ip地址+8080+war包解压后的名字,访问成功

设置输入端口就能访问

tomcat/conf

vim server.xml:端口改为80

阿里云项目上线

在最后配置

阿里云项目上线

/home/software/tomcat9/webapps/bookstore-0.0.1-snapshot/web-inf/classes