Find a job where your take-home pay is at least 2x, but preferably 3x or 4x, what you need to spend to live your life. Put that remaining 50% (or 67% or 75% or whatever) into reasonably-aggressive investments. Not YOLO-risky, but not anything too conservative either. Don't actively manage your portfolio; most of your wealth should be in index funds or index ETFs. Work hard at your job, get promoted, actively ask for and negotiate for raises, and switch companies whenever you think your current job won't yield significant pay raises anymore.
This won't make you fabulously rich, but you're likely to be able to retire fairly early this way.
To further optimize, pick a high-salary field like software development, and a subfield that is in high demand and requires specialized skills (ML/AI, for example). In addition to that subfield, get yourself a bunch of generalized knowledge about the field overall so that you can be enough of a jack-of-all-trades such that people value you outside your niche as well. I talk about software because that's an industry I know, but I'm sure there are others.
After you've amassed some cash, look for privately-held companies that have strong revenue and revenue growth, and look like they're going to go public in the next 1-3 years. Try to get large ISO option grants when you join, and exercise about a year's worth immediately (assuming the company offers early exercise) so you don't owe any taxes in the year of exercise. After you hit the standard 1-year vesting cliff, start looking for another company in a similar situation. Do this three, four, maybe five times.
The downside is that, depending on the option strike price and number of options, you need a decent amount of cash for those option exercises, and the stock you buy isn't immediately liquid. There's some risk to this approach, certainly, but there's also potentially high reward, and you've diversified somewhat by putting your eggs in the baskets of several companies. You can also adjust your risk level by only exercising company options up to some percentage of your net worth that you decide meets your risk tolerance.
As these companies go public, start selling off the stock, and put the proceeds into more-diversified investments. Take the emotion out of it; plan to sell some percent of your total every quarter, such that you've sold it all after 2-4 years. Remember that you will owe taxes on the gains. You can invest the money you need for taxes, but keep those in fairly conservative investments. If you expect those investments to earn you a lower rate of return than the tax underpayment penalty in your jurisdiction, pay estimated taxes quarterly (assuming you're in the US).
If you don't like that optimization path, then a pretty "safe" way to get more money is to be amazing at your job and at climbing the career ladder. VP and C-level folks at medium-to-large public companies will tend to make bank, much of it via equity grants. This takes time, though: at best, you'll make VP in your mid-thirties if you're really good.