今天在一台新伺服器下切換使用者的時候出現“This account is currently not available”錯誤上網檢索了一下發現是使用者的shell禁止登入的問題解決辦法:比如我是 su - apache的時候出現的問題用vi看看apache的帳號資訊# vi /etc/passwd | grep apache發現它的shell是“/sbin/nologin”,需要將起改成“/bin/bash”# vipw
Apache 使用代理出現The proxy server received an invalid response from an upstream server.The proxy server could not handle the request GET /.Reason: DNS lookup failure for: xxx.xxx.com錯誤,解決辦法:在apache設定檔http.conf或vhost.conf中的ServerAdmin
執行yum命令時,提示“Another app is currently holding the yum lock; waiting for it to exit...”等錯誤字樣。這是因為yum被鎖定無法使用導致的。錯誤資訊參考:Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 40 M
locate是Linux系統中的一個尋找檔案命令,若在尋找檔案時提示:locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory,則按以下方法解決即可。locate命令和find命令等找尋檔案的工作原理類似,但
部分執行yum update升級或自己編譯了Linux核心的系統,在完成升級以後,重啟或啟動iptables會出現“iptables-restore: unable to initialize table 'filter''”錯誤,中文翻譯是:iptables的恢複:無法初始化表“過濾器”。詳細錯誤如下:Applying iptables firewall rules: FATAL: Could not open '
1.近日,發現有台伺服器不能使用linux上的基本命令,包括ifconfig , vi 等等。不管輸入什麼都出現-bash: vi: command not found的情況。2.在網上找下原因,可能是我前幾日在使用者的目前的目錄下的.bashrc檔案做了修改,重啟後才出現這種問題的。3.命令都無法使用了,我們就用export來重設下bash的環境變數。export
在使用php的過程中,出現了phpmyadmin 403錯誤:phpmyadmin 403 You don’t have permission to access /phpmyadmin/ on this server,該如何解決呢?本文我們就介紹一下這類問題的解決思路與方法,希望能夠對您有所協助。解決辦法:
(一)錯誤記錄檔:http://storageboy.com/2013/04/25/quick-tip-on-installing-and-running-redhats-openstack-distro/ERROR : Error during puppet run : err:/Stage[main]/Packstack::Netns/Exec[netns_dependecy_install]/returns: change from notrun to 0 failed: Command
故障分析:更換機器,網卡的 mac 地址就變換了,該問題是由於 udev 導致。解決辦法:第一種方法:可以對照現有的 mac 地址修改 /etc/udev/rules.d/ 目錄下的 70-persistent-net.rules 檔案(名字可能不一樣),將原有插網線的 ethx 的 MAC 位址換成現有的 MAC 位址。第二種方法,也是最簡單的方法、也是博主推薦的方法:# rm -f /etc/udev/rules.d/70-persistent-net.rules#