mysql redis 开启远程访问

springboot 加载外部yml

nohup java -jar warehouse-0.0.1-SNAPSHOT.jar --Dspring.config.location=/root/www/application.yml &

mysql 开启远程访问 

grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;

redis 开启远程访问,启动时,注意要加载配置文件

# 允许任何主机连接、访问
bind 127.0.0.1 改为 bind 0.0.0.0

# 关闭保护模式
protected-mode yes 改为 protected-mode no

# 允许启动后在后台运行,即关闭命令行窗口后仍能运行
daemonize no 改为 daemonize yes

posted @ 2022-08-06 16:45  琴声清幽  阅读(37)  评论(0编辑  收藏  举报