Ensure a comfortable external environment. A quiet and comfortable sleeping environment is extremely important. If you live near the road or are under construction, you can't sleep in such a noisy situation, so close the doors, windows and glass at night to minimize noise. And try to turn off all the lights, because lights have a great influence on sleep. I can't sleep anyway when my roommate turns off the lights at night. There is no way to buy an eye mask, and the effect is still good.
Make sure to relax and relieve stress. Everyone has their own troubles, and now the pressure of work and life is so great. If you sleep at night thinking about things that bother you during the day, it's strange not to lose sleep. Therefore, a more effective way to relieve insomnia is to find something that bothers you at night and find a way to solve it, which will be much better. Of course, sometimes it's not that simple to solve. At this time, you can talk to your best friend or buddy about your troubles, which can greatly ease your mood.
? Pay attention to diet and rest. Irregular working hours will make people anxious, insecure and inefficient, thus producing very depressed negative emotions. Long-term irregular work and rest will not only make you physically unbearable, but also mentally weak. Therefore, regular work and rest time is very necessary. Another is to pay attention to eating habits and time. Don't eat too early at night, or you will get up to look for food when you wake up hungry in the middle of the night (I had such a painful experience that I woke up hungry in the middle of the night and didn't eat), especially in winter. . . The ideological struggle between hunger and the trouble of getting up and getting dressed and the cold weather makes people collapse in minutes! And don't drink coffee at night unless you want to stay up late. Otherwise, you will be miserable at night.
? Do something to help you sleep. For example, you can exercise properly at six or seven. This will help you sleep, but don't exercise before going to bed, it will only make you more awake. You can also listen to soothing music before going to bed. But I recommend a more useful method. You can read some political or the most obscure books before going to bed. For example, books such as Principles of Marxism, I guarantee that you will want to sleep within 20 minutes.
These are my personal views and methods. But I want to make it clear that these methods are only effective for people who suffer from occasional insomnia or mild insomnia. If you have very serious insomnia, you'd better see a doctor and seek professional treatment.