FMIL, for night or low light pictures, there are several ways to do it:
1. increase ISO - the higher the ISO, the noisier the pictures will be. By noisier I mean you'll see small dots all over your photos
2. increase aperture - it's kinda like our pupils enlarge at night, so more light can come through. The drawback of that is more things will be out of focus. The harbor picture you showed us has a small aperture, because everything is
clearly in focus.
3. increase shutter speed - the longer the shutter is open, the more light can come through. However, hand shake is unavoidable, so you'll need a tripod. A good rule of thumb for handheld shots is shutter speed shouldn't be slower
than 1/60. I personally don't hand hold under 1/100 just to be safe.
To make the best use out of your nikon, you should learn how to shoot in manual, or at least aperture (AP) mode. There are a lot of articles and info on the web, and that's how I learned in and outs of photography. It takes a while
to grasp the concept, but it's very rewarding!