CentOS怎么啟動(dòng)瀏覽器:多種方法詳解
準(zhǔn)備工作:安裝瀏覽器
若系統(tǒng)中未預(yù)裝瀏覽器,需通過以下步驟安裝:
安裝Firefox
sudo yum install firefox
安裝Google Chrome
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo yum install ./google-chrome-stable_current_x86_64.rpm
方法一:通過終端命令啟動(dòng)瀏覽器
啟動(dòng)Firefox
firefox
后臺(tái)運(yùn)行瀏覽器:
firefox &
啟動(dòng)Chrome
google-chrome
方法二:圖形界面操作
GNOME桌面環(huán)境
- 點(diǎn)擊左上角"Applications"菜單
- 選擇"Internet"分類
- 單擊瀏覽器圖標(biāo)
KDE Plasma桌面
- 打開開始菜單
- 導(dǎo)航至"Internet"選項(xiàng)
- 選擇已安裝的瀏覽器
常見問題解決
無圖形界面時(shí)啟動(dòng)瀏覽器
sudo yum groupinstall "GNOME Desktop"
startx
瀏覽器無法啟動(dòng)排查
# 查看錯(cuò)誤日志
journalctl -xe
# 檢查依賴完整性
sudo yum check-dependencies
高級(jí)技巧
指定URL啟動(dòng)
firefox https://example.com
無頭模式運(yùn)行
firefox --headless