首页 技术 正文
技术 2022年11月7日
0 收藏 324 点赞 621 浏览 1191 个字

192.168.30.23
mkdir  /web/webapp
tar xf SLSaleSystem.tar.gz -C /web/webapp
ls /web/wenbapp
vim /usr/local/tomcat8/conf/server.xml
<Context docBase=”/web/webapp/SLSaleSystem” path=”” reloadable=”flase” >
        </Context>
/usr/local/tomcat8/bin/shutdown.sh
/usr/local/tomcat8/bin/startup.sh
访问http://192.168.30.23:8080
显示会员商城的后台
连接数据库mariadb
在192.168.30.24上
yum -y intstall mariadb mariadb-server
systemctl start mariadb
mysql

MariaDB [(none)]> create database slsaledb;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all on slsaledb.* to admin@’%’identified by’123456′;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye
[root@tomcat~]# rz -E
rz waiting to receive.
[root@tomcat ~]# mysql -uroot < slsaledb-2014-4-10.sql

在192.168.30.23
[root@tomcat ~]# vim /web/webapp/SLSaleSystem/WEB-INF/classes/jdbc.properties
driverClassName=com.mysql.jdbc.Driver
url=jdbc\:mysql\://192.168.30.24\:3306/slsaledb?useUnicode\=true&characterEncoding\=UTF-8
uname=admin
password=123456
minIdle=10
maxIdle=50
initialSize=5
maxActive=100
maxWait=100
removeAbandonedTimeout=180
removeAbandoned=true

[root@tomcat ~]# /usr/local/tomcat7/bin/shutdown.sh

[root@tomcat ~]# /usr/local/tomcat7/bin/startup.sh

访问192.168.30.23:8080

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,088
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,564
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,412
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,185
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,822
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905