Centos7誤刪/root目錄後重啟報錯:Could not chdir to home directory /root: No such file or directory
誤刪/root目錄
一、報錯:
誤刪根目錄的root資料夾
重啟後提示錯誤
could not chdir to home directory /root:No such file directory
翻譯: 無法找到到/root目錄:沒有這樣的檔案目錄
退出使用者登入 或 重啟後變成
二、解決辦法:
1.直接建立/root目錄:
# mkdir /root
2.複製/etc/skel/下的隱藏檔案到/root目錄下:
# cp /etc/skel/.bash* /root
3.Ctrl+D退出使用者登入 或 reboot重啟
重啟後正常
相關推薦
Centos7誤刪/root目錄後重啟報錯:Could not chdir to home directory /root: No such file or directory
誤刪/root目錄 一、報錯: 二、解決辦法: 一、報錯: 誤刪根目錄的root資料夾 重啟後提示錯誤 could not chdir to home directory /root:No such file direc
配置dns後重啟報錯“13: near 'bbs.adamkuo.com.': bad dotted quad、”“not loaded due to errors.”、“bad dotted quad”
1.先看一下我的log錯誤提示:(出現此類問題肯定是配置檔案有問題,仔細檢查配置檔案) Nov 30 14:25:31 localhost named-checkconf: zone adamkuo.com/IN: loading from master file adamkuo.com.zone fail
jenkins重啟報錯:Jenkins cannot restart itself as currently configured
問題: (本文操作是在Windows環境,如果是linux環境,方法是類似的) 新安裝了jenkins之後,修改配置後重啟報錯如下: 原因: 埠號衝突。 因為Jenkins的預設埠號是:8080,如果本地還啟動了 Tomcat,它預設的埠號也是8080,所以這個埠有可能被佔
Centos7與Fedora24安裝mysql後無法啟動,提示 Unit mysql.service failed to load:No such file or directory
Centos7與Fedora24安裝mysql後無法啟動,提示 Unit mysql.service failed to load:No such file or directory [r
解決nginx重啟“var/run/nginx/nginx.pid" no such file or directory問題
重啟虛擬機器後,再次重啟nginx會報錯“/var/run/nginx/nginx.pid" no such file or directory。 常見的方法: /usr/local/nginx/
重裝JDK後,輸入java -version報錯:could not open " xxxxjvm.cf "
pat 註冊表 報錯 ref 運行 href bsp could not com 重裝JDK後,修改JAVA_HOME的value值為新安裝路徑,cmd輸入java -v後報錯:could not open " xx\xx\jvm.cf " 解決辦法: 在運行j
Docker重啟GitLab異常/opt/gitlab/embedded/bin/runsvdir-start: No such file or directory(特殊情況)
一、 基本情況 原來在學習gitlab安裝的時候,學習了centos本地安裝和docker安裝,當時本地安裝完成後直接關閉了git
源碼安裝並且成功啟動mysql後輸入mysql報錯:command not found
mysql源碼安裝並且成功啟動mysql後輸入mysql報錯:-bash: mysql: command not found解決方案:方案1、需要做軟連接:ln -s /usr/local/mysql/bin/* /usr/bin/ 方案2、加入環境變量:vim /etc/profile.d/mysql.s
【已解決】mac上appium報錯:“Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path”
resource sset root could not fun ror 環境 apt direct 按照網上教程配置完appium環境後,真機跑自動化過程,遇到如下報錯: appium報錯如下: [ADB] Checking whether aapt is present
centos7數據庫連接使用127.0.0.1報permission denied,使用localhost報No such file or directory
臨時 pro target lamp環境 processes sele mount sdn -i 安裝lamp環境後,測試數據庫連接。 當host使用127.0.0.1時,報錯:(HY000/2002): Permission denied。 把host換成localhos
c++ include包含工程目錄下的.h檔案,報錯:fatal error C1083: 無法開啟包括檔案:“Sales_item.h”: No such file or directory
背景:刷c++primer的題目,將下載的某個標頭檔案拖拽到自己建立的工程目錄下,在自己新建的原始檔中include包含時,報無法開啟檔案 明明有檔案 為什麼說無法開啟呢 於是到本地的工程目錄中開啟一看,果然沒有這個檔案 說明通過滑鼠拖拽檔案進入到工程樹上面,檔案並沒
hdfs dfs -ls後出現No such file or directory解決
原因是因為-ls預設目錄是在hdfs檔案系統的/user/使用者名稱(使用者名稱就命令列@符號前面的那個東西),但是你的hdfs系統內沒有這個資料夾,所以會顯示No such file or directory。 所以你需要在hdfs檔案系統內建立 [email protected
centos7.5 /etc/rc.d/init.d/functions: No such file or directory
yum install initscripts -y 還有個問題:/etc/sysconfig/network : No such file or directory 1,touch /network 即可。 或者: 1,echo "NETW
Centos7.5 PHP7.2 連線sql_server 遇到fatal error: sql.h: No such file or directory
FreeTD的安裝過程這裡就不寫,以免囉嗦。 下面要講的是PHP的sql server 拓展安裝。 php5.6等老版本預設帶mssql的擴充套件,但php7.1以上就沒有,所以需要手動下載並編譯。 pdo_sqlsrv擴充套件包 http://pecl.php.net/pac
hibernate創建本地查詢後進行查詢的時候報錯: could not execute query;列名無效
遇到 註解 ransient 映射類 日誌信息 數據 字段 數據庫 get 今天在走數據下發的時候遇到了一個問題: 創建一個sql語句(sql語句很簡單) 創建了一個本地查詢,執行這個sql語句 結果報錯:could not execute query;列名無效 先檢查數據
【G】win10上安裝git後,無法使用,出現 fatal: open /dev/null or dup failed: No Such file or directory.
解決方案 解決方案一: 成功率較低 在C:\Windows\System32位置,找到cmd,以管理員執行cmd,貼上輸入sfc /scannow命令,進行修復,修復完重啟。 解決方案二: 成功率較高 替換C:\Windows\System32\driv
git 原始碼安裝後報錯/usr/bin/git: No such file or directory
現象 今天原始碼安裝一個git後,執行git命令後報如下錯誤: $ git --version -bash: /usr/bin/git: No such file or directory 分析過程 開始我以為是PATH路徑的問題,檢查PATH路徑發現是正常的,而且找不到命令的報錯也不應該是
centos7 Unit https.service failed to load: No such file or directory.
CentOS7.1,安裝http後,設定httpd為自動啟動 #systemctl enable httpd.service # systemctl start https.service Failed to start https.service: Unit htt
ubuntu下如何處理出現“ unable to execute ./DrClientLinux: No such file or directory”,“沒有那個檔案或目錄”的問題。
最近在重灌ubuntu的時候遇到了一個問題,因為在安裝的時候沒有連網,導致了沒有下載32位的庫,導致了沒法執行校園網的登入客戶端,因為那個客戶端是用32位寫的,所以出現了各種問題,經過L同學的幫助,最終弄好了,特意貼出程式碼,希望能夠幫助大家。千萬別遇到類似問題,不然會崩潰
root無法登陸 :No such file or directory
Question: 在Linux圖形介面使用root登陸提示如下: View Details: /etc/gdm/PreSession/Default: Registering your session with utmp. /etc/gdm/PreSessio