美文网首页
搭建服务器-部署应用过程

搭建服务器-部署应用过程

作者: 一只浩子 | 来源:发表于2022-01-16 18:21 被阅读0次
一、规划:

11,12,13,14,15,16 服务器 搭建redis集群
11,12,13 服务器 搭建mongodb
15 搭建 mysql
16 装nginx
11,12 服务器部署应用程序webapps

二、上传并启动应用

在/yuanben目录下创建webapps目录
webapps下创建scms-whouse目录
上传scms-whouse-web.conf文件和jar包到scms-whouse目录下
给jar包授权
chmod a+x /yuanben/webapps/scms-whouse/*.jar
配置软连接
ln -s /yuanben/webapps/scms-whouse/scms-whouse-web.jar scms-whouse

配置nginx

将修改后的nginx.conf覆盖掉
cd /usr/local/nginx/conf
在conf创建目录servers
将scms-whouse.conf放入servers

查看是否正常
/usr/local/nginx/sbin/nginx -t
启动
/usr/local/nginx/sbin/nginx

网页访问 192.168.0.16:90
404
90没有访问权限,需要在(云配置)配置规则

可以不操作
server_name htest.ybveg.com localhost;
localhost 是可以通过ip访问

解析ip

java -jar scms-whouse-web.jar


配置软连接.png 授权.png

相关文章

网友评论

      本文标题:搭建服务器-部署应用过程

      本文链接:https://www.haomeiwen.com/subject/tsrxhrtx.html