Normally it all just works. But in this instance something has gone wrong with the permissions and it is preventing Node-RED from reading your settings file.
Had you run node-red manually before starting it as a service?
===================
11 Oct 14:57:58 - [info] Node-RED version: v1.0.1
11 Oct 14:57:58 - [info] Node.js version: v10.16.3
11 Oct 14:57:58 - [info] Linux 4.4.0-105-generic x64 LE
11 Oct 14:57:59 - [info] Loading palette nodes
11 Oct 14:57:59 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
11 Oct 14:57:59 - [info] Settings file : /home/gaofei/.node-red/settings.js
11 Oct 14:57:59 - [info] Context store : 'default' [module=memory]
11 Oct 14:57:59 - [info] User directory : /home/gaofei/.node-red
11 Oct 14:57:59 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Oct 14:57:59 - [info] Flows file : /home/gaofei/.node-red/flows_iZbp1fazljd8u3jfbtht09Z.json
11 Oct 14:57:59 - [info] Creating new flow file
11 Oct 14:57:59 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
11 Oct 14:57:59 - [info] Starting flows
11 Oct 14:57:59 - [info] Started flows
11 Oct 14:57:59 - [info] Server now running at http://127.0.0.1:1880/
There is something not right as node-red-start should have done the same thing. Are you in the group sudo? Run the command groups to find out. If it does not show sudo then that is the explanation. If it does show sudo then what does which node-red-start show? If that is /usr/bin/node-red-start then could you post the contents of that here?
gaofei@iZbp1fazljd8u3jfbtht09Z:~ sudo groups
root
gaofei@iZbp1fazljd8u3jfbtht09Z:~ groups
gaofei
gaofei@iZbp1fazljd8u3jfbtht09Z:~$
I have add user 'gaofei' sudo permission.
Now it works.
gaofei@iZbp1fazljd8u3jfbtht09Z:~$ sudo systemctl status nodered
â—Ź nodered.service - Node-RED graphical event wiring tool
Loaded: loaded (/lib/systemd/system/nodered.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-10-11 16:41:42 CST; 15s ago
Docs: http://nodered.org/docs/hardware/raspberrypi.html
Main PID: 29654 (node-red)
CGroup: /system.slice/nodered.service
└─29654 node-red
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: If the system-generated key is lost for any reason, your credentials
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: file will not be recoverable, you will have to delete it and re-enter
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: your credentials.
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: You should set your own key using the 'credentialSecret' option in
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: your settings file. Node-RED will then re-encrypt your credentials
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: file using your chosen key the next time you deploy a change.
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: ---------------------------------------------------------------------
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: 11 Oct 16:41:43 - [info] Starting flows
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: 11 Oct 16:41:43 - [info] Started flows
Oct 11 16:41:43 iZbp1fazljd8u3jfbtht09Z Node-RED[29654]: 11 Oct 16:41:43 - [info] Server now running at http://127.0.0.1:1880/