How do I get good recommendation letters?

How can I get good letters of recommendation from my professors? I go to office hours once a week and talk to them, but the conversations only last less than ten minutes and I have trouble finding excuses and coming up reasons to talk to them. It’s only been a couple weeks since school started, but I feel like my professors don’t know me well and barely remember who I am. Any tips on how to improve my chances of getting a good letter?