In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set Node-RED user name and password". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to set Node-RED username and password".
Step 1: find the settings.js file of node-red on your computer
Enter node-red on the system command line
The red box in the picture shows the directory where settings.js is located.
Go to this directory and right-click the application to open (NotePad is used here).
Step 2: modify the code
Find the code block in the figure, remove the previous code block and save it.
Then start node-red from the system command line
When you enter the page, you find that the login panel appears.
As you can see, the user name here is the admin in the previous code, but the password is not the password in the code. The password in the code is a ciphertext encrypted by the bcrypt algorithm, so we need to generate a ciphertext with our own plaintext password and paste it into the password in the code.
Step 3: to change the password to generate the appropriate password, you can use the node-red-admin command line tool in the system command line to enter the following instructions to install the tool: npm install-g-- unsafe-perm node-red-admin is installed enter the instruction: node-red-admin hash-pw will want to use the password input, and then the tool will print out the encrypted password that can be copied to the settings file. (note that when setting a password, the typed characters are not visible due to tool encryption.)
Paste the generated password into the password in the code, or you can change the user name and save it.
Step 4: log in to Node-RED to launch node-red from the system command line and enter the user name and password you just set in the browser to log in.
At this point, I believe you have a deeper understanding of "how to set Node-RED user name and password". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.