Spring Boot学习扎要4_2019.2.16-基于新版本微服务时代Spring Boot企业微信点餐系统

1前端地址

cd /opt/code/sell_fe_buyer/config

vim index.js

 

编辑之后

 

npm run build

cp -r dist/* /opt/data/wwwroot/sell/

查看是否修改成功的时间

stat /opt/data/wwwroot/sell/

 

 

当nginx转发不了的时候会出现无法找到主机

vim /usr/local/nginx/conf/nginx.conf

 

修改转发至本机地址

       location /sell/ {
            proxy_pass http://192.168.41.1:8080/;
        }

 

重启:

nginx -s reload

 

测试虚拟机与本机通不通除了ping方法还有

curl http://192.168.41.1:8080/sell/buyer/product/list

 

 

 

Linux下同步网络时间

一、安装ntp

# yum install -y ntpdate

二、同步时间

# 方式一、使用域名连接,要经过DNS解析,速度慢。
# ntpdate pool.ntp.org
# 方式二、使用IP连接,超级快。
# ntpdate 120.24.81.91
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值