web站点部署(基于tomcat构建成功后

web站点部署(基于tomcat构建成功后)
-----------------------------------------------------
cd /usr/local/tomcat8/webapps
ls
上传一个包到此目录下meminfo.war
浏览器可以访问了
--------------------------------------------
部署开源的站点
下载官网:http://github.com/JpressProjects/jpress
安装数据包
yum -y install mariadb-server  mariadb
mysql
create database jpress DEFAULT CHARACTER SET utf8;
grant all on jpress.* to jpress@'localhost' identified by '123456';
flush privileges;
exit
jpress 站点上线
 wget  https://github.com/JpressProjects/jpress/archive/0.4.0.tar.gz
tar xf 0.4.0.tar.gz
进入其中启动
cd jpress-0.4.0/wars/
[root@localhost wars]# mv jpress-web-newest.war /usr/local/tomcat8/webapps/
[root@localhost wars]# /usr/local/tomcat8/bin/shutdown.sh
[root@localhost wars]# /usr/local/tomcat8/bin/startup.sh
[root@localhost wars]# ls /usr/local/tomcat8/webapps/
浏览器访问:http://192.168.200.112:8080/jpress-web-newest/install
 

猜你喜欢

转载自www.cnblogs.com/123456likun/p/11572636.html
今日推荐