First, identify the source of the noise. If it’s coming from an innerspring mattress or box spring, a replacement is inevitable.  If it’s a bed frame check on the tightness of the bolts and nuts. Sometimes re-tightening them may be all that is necessary. Also, try incorporating washers between the two metals causing the squeaking.  Also, try lubricating the metal joint frames with WD-40 or bee wax for wooden frames. Sometimes the rubbing of slats on the frame produces a strange noise. In that case, a cushioning foam between the slats and frame is necessary.  Lastly, try incorporating floor padding. A piece of towel or t-shirt can do the trick. But if all that fails, invest in a new bed.