标签:web 2019.9 Tomcat jp MariaDB root localhost tomcat8
1,上传开发人员给的war包
[root@localhost ~]# rz
z waiting to receive.**B0100000023be50
[root@localhost ~]# ls
anaconda-ks.cfg jpress-web-newest.war 公共 图片 音乐
apache-tomcat-8.5.40.tar.gz nginx-1.16.0.tar.gz 模板 文档 桌面
initial-setup-ks.cfg slsaledb-2014-4-10.sql 视频 下载
[root@localhost ~]# mv jpress-web-newest.war /usr/local/tomcat8/webapps/ //把包放到tomcat8的/webapps下
[root@localhost ~]# ls /usr/local/tomcat8/webapps/
docs examples host-manager jpress-web-newest jpress-web-newest.war manager ROOT //服务器支持自动解压
2,测试能否可以正常访问到
3,因为没有数据库,所以安装数据库。
[root@localhost ~]# yum -y install mariadb-server mariadb //安装数据库依赖包
[root@localhost ~]# systemctl start mariadb //开启数据库
[root@localhost ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.56-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database jp; //创建jp数据库
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all on jp.* to 'jp'@'localhost' identified by '123456'; //给jp用户所以目录设置权限,密码是123456
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges; //加载
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
4,之后就是测试了
5,需要tomcat重启
[root@localhost examples]# /usr/local/tomcat8/bin/shutdown.sh //关闭
[root@localhost examples]# /usr/local/tomcat8/bin/startup.sh //开启
6,之后登入密码
标签:web,2019.9,Tomcat,jp,MariaDB,root,localhost,tomcat8 来源: https://www.cnblogs.com/otherwise/p/11567796.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。