There is in fact plenty on this website about rail stanchions or stantions, but like any search, you need to choose your search parameters carefully.
Firstly the job requires two persons, one inside to undo the nuts, and the other outside to handle the top end of the bolts. You should get yourself some extra deep sockets for your ratchet drive socket spanner because the bolts used tend to extend well below the tightened nut. Also I would purchase a selection of large “Penny” washers to spread the load when you re-tighten the nuts, and they are a real pain to put on as now you need two hands, but only one will reach the spot.
Getting to the nuts means removal of a hopefully portable strip of wood from the insides of the under deck cupboards to gain access. Those strips of wood were, on my boat, originally secured with mild steel screws which had rusted.
If the wood under the stanchion bases in way of the hull to deck join, has gone rotten over the years, you will need to deal with that problem, and I wish you the best of luck with that, I think you will need it !!