得到linux命令的root權限:
http://blog.csdn.net/mddy2001/article/details/7652110
1. 更改密碼
在終端中輸入:
sudo passwd root
Enter new UNIX password: (在這輸入你的密碼)
Retype new UNIX password: (肯定你輸入的密碼)
passwd: password updated successfully
2. 獲取root權限
su root
Password: (在此輸入你上面設置的密碼)
或者直接用root帳戶登陸。
如何在linux CentOS 上安裝chrome 谷歌瀏覽器?
http://blog.csdn.net/wer724853863/article/details/52458160
1. su root( 獲取root權限)
2. wget http://chrome.richardlloyd.org.uk/install_chrome.sh (用wget下載shell文件)
3. chmod u+x install_chrome.sh (給文件授予權限)
4. ./install_chrome.sh -s (用 ./ 命令執行sh文件,-s 表示安裝的穩定版,以後等待數分鐘就行了)
5. 若是想卸載,則執行命令 yum remove google-chrome-stable 或者 ./install_chrome.sh -u 命令linux