博客 > 【Plesk經(jīng)驗分享】域名重新配置失敗怎么辦?
瀏覽量:5550次評論:0次
作者:Christina時間:2019-09-05 18:07:32
適用版本:
Plesk for Linux
問題
? 域名重新配置失敗且出現(xiàn)下面的錯誤:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com
ERR [util_exec] proc_close() failed
ERR [panel] Apache config (15230397800.07748900) generation failed: Template_Exception: Invalid format for mklink: wait source:destinstation, got /var/www/vhosts/system/example.com/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf
? /root/.bash_profile 已被手動自定義設(shè)置過。
? grep 工具無法正常運行:
# cat file.txt | grep hello
grep: hello: No such file or directory
? /etc/httpd/conf/plesk.conf.d/vhost 為空會丟失某些域名的配置文件:
# ll /etc/httpd/conf/plesk.conf.d/vhosts
total 0
原因
導(dǎo)致工具 grep 無法正常運行的 /root/.bash_profile 文件中有不正確的句法或不正確編碼的符號。
解決方案
1. 通過SSH連接服務(wù)器。
2. 要么恢復(fù) /root/.bash_profile 中的自定義設(shè)置要么使用默認(rèn)的內(nèi)容替換所有內(nèi)容:
# cat /root/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
相關(guān)文章推薦
2025-06-03 16:11:30
2025-05-29 16:58:20
2025-05-28 15:34:20
2025-05-27 17:20:38
2025-05-27 11:53:22
熱門工具
標(biāo)簽選擇
閱讀排行
我的評論
還未登錄?點擊登錄