Magnetic properties (phase diagram and magnetization) of a cylindrical Ising nanowire or nanotube are investigated by the use of the effective-field theory with correlations. Particular emphasis is given to the effects of the surface and its dilution on them. Much attention is paid to the thermal variation of the magnetization when the spins at the surface are coupled antiferromagnetically to the ferromagnetic core spins by the negative shell coupling. The effects of dilution at the surface, the surface exchange interaction, and the shell coupling on the magnetization profiles are investigated. We find a number of characteristic phenomena for them.