Under what conditions does the astronaut’s weight on a spacecraft turn out to be equal to his weight on the Earth’s surface?

There are two options:
1) the spacecraft must move progressively with an acceleration equal to the acceleration of free fall on the Earth’s surface;
2) the spacecraft must rotate with such an angular velocity so that the centripetal acceleration at the location of the astronaut on the spacecraft is 9.8 m / s2.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.