Since the web UI interface that comes with Flink does not have an account password, this effect needs to be achieved through nginx.
1. Install the httpd-tools tool
yum install httpd-tools -y
2. Generate username and password file
htpasswd -c /usr/local/nginx/conf/flinkuser username passwd
flinkuser: the name of the generated username and password file
username: username
passwd: password
3. nginx configuration