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

10-16 13:32