I sell courses and e-books, but I wouldn’t advise you doing it for the money.
Don’t get me wrong, it’s a great experience, and I’ll continue doing it. But it’s a terrible way to invest your time for money. Building and selling a product or freelancing is IMHO a much safer way to make a living ;)
Be careful, you easily see the 10s of people who succeeded in selling courses, not the 1000s one who barely make a few bucks each month, despite great content.