The best/easiest way to become a permanent resident of a foreign country is to marry a foreigner. This will usually get you spousal 'rights to reside' fairly easily.
The second best way to move to a foreign country is to buy a residence/property there. This requires substantial money up front, and entails a certain amount of risk and considerable capital.
The most
difficult way to become a resident of a foreign country is to attempt to work there. Nearly every country on the planet has fiercely protective employment laws against foreigners. The best you can usually hope for here, is to somehow land a job in a foreign county where you meet an adorable native and then marry them-- see paragraph 1.
The alternative to the above, is to have documentation proving that you are a persecuted refugee. If you can
prove that your life is in imminent danger due to religious beliefs, warfare, or political repression, there are a number of countries that may grant you asylum. Um, the US is one of them.....