flinkdashboard未授权

flinkwebui 增加账号密码

yum install httpd-tools -y

htpasswd -c /usr/local/nginx/conf.d/.ngpasspd flink2024

flink_2024

再输入密码

修改flink.conf

我们可以通过./conf/flink-conf.yaml来设置web服务器的ip和端口:

rest.address

rest.port:8084

安装nginx

./configure

make

make install

然后目录在/usr/local/nginx

添加配置完成以后,重启nginx,

配置nginx.conf

server {

listen 0.0.0.0:8081;

#auth_basic "flink_2023";

#auth_basic_user_file /usr/local/nginx/conf.d/.ngpasspd;

#proxy_pass http://172.16.150.xx:8081/;

#access_log logs/host.access.log main;

location / {

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

auth_basic "flink_2024";

auth_basic_user_file /usr/local/nginx/conf.d/.ngpasspd1;

proxy_pass http://172.16.150.xx:8084/;

}

}

sudo /usr/local/nginx/sbin/nginx -s quit

sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf.d/default.conf

访问 http://172.16.150.xx:8084

http://172.16.150.xx:8081

相关推荐
别或许3 分钟前
在centos系统下,安装MYSQL
linux·mysql·centos
丁丁丁梦涛8 分钟前
CentOS修改MySQL数据目录后重启失败的问题及解决方案
linux·mysql·centos
黑马金牌编程13 分钟前
Jenkins的Linux与window部署方式
linux·运维·windows·jenkins·持续集成·cicd
web安全工具库18 分钟前
告别刀耕火种:用 Makefile 自动化 C 语言项目编译
linux·运维·c语言·开发语言·数据库·算法·自动化
金纬软件122 分钟前
电脑监控软件有哪些?企业监控软件应该怎么选?
大数据·运维
DechinPhy25 分钟前
Ubuntu挂载新硬盘
linux·运维·服务器·ubuntu
lht63193561228 分钟前
Ubuntu Server 系统安装图形界面远程工具(RDP)
linux·运维·ubuntu
云计算练习生1 小时前
linux shell编程实战 02 变量与交互式输入
linux·运维·shell编程·shell 变量
Dovis(誓平步青云)1 小时前
《简易制作 Linux Shell:详细分析原理、设计与实践》
linux·运维·服务器
weixin_307779131 小时前
在Linux服务器上使用Jenkins和Poetry实现Python项目自动化
linux·开发语言·python·自动化·jenkins