How can I open Google Chrome from the terminal with the URL “localhost:3000”?

只愿长相守 提交于 2019-12-05 03:08:13

Have you tried?

google-chrome http://localhost:3000

Got the following message:

zsh(or bash): command not found: google-chrome (or chromium-browser)

Solved my problem:

open http://localhost:3000

{ I use Google Chrome as a default browser 😉 }

I dont seem to have this problem.

chromium-browser "http://localhost:8889"
chromium-browser "http://127.0.0.1:8889"

One quick suggestion would be to check to see if 127.0.0.1:3000 works (newer versions of ubuntu seem to have an issue resolving "localhost" instead of the numbered ip address.)

As stated beautifully by @Bexultan Myrzatayev, if google chrome is your default browser, simply

open http://localhost:8000
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!