So do you know if your LED turns on/off when changed from the command line? Always best with hardware control to try the simplest approach first. Once you know for sure that the hardware control is actually working, you can move on to the more flexible control from Node-RED.
You are talking hardware. Though LED kind of implies that, there is an LED node.
One thing you may be failing on is how you connect the LED.
I believe the practice is to connect the LED anode to + (via resistor) and connect the cathode to the GPIO pin.
This way the RasPi sinks the current.
If you wired it up so the anode goes to the GPIO pin and the cathode to the GND, it won't work as expected.
Another thing - maybe academic - but what you are injecting:
payload = string = 1.
Probably better if you make that a number rather than string.
Strings of 1 and 0 don't exactly equate to high and low on the GPIO pins.
true and false could also be used but I am not too sure on how that translates via the GPIO node.
(rpi.gpio.out I think is the node you are using)
i tried with resistor also but not working.from terminal it working perfectly.
i am not understanding why that nuch small thing is not happening.
it seems me like it is not getting connected from RPI3. Besides node-red is running properly