You can remember the meaning of 安慰 with this easy mnemonic:
I wasn't very content (安) with my salary, but my friends reassured (慰) and comforted me.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.