博客 > 【Plesk经验分享】域名重新配置失败怎么办?
浏览量:5455次评论:0次
作者:Christina时间:2019-09-05 18:07:32
适用版本:
Plesk for Linux
问题
• 域名重新配置失败且出现下面的错误:
# /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 已被手动自定义设置过。
• 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
原因
导致工具 grep 无法正常运行的 /root/.bash_profile 文件中有不正确的句法或不正确编码的符号。
解决方案
1. 通过SSH连接服务器。
2. 要么恢复 /root/.bash_profile 中的自定义设置要么使用默认的内容替换所有内容:
# 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
相关文章推荐
2025-04-30 15:26:27
2025-04-29 15:28:18
2025-04-23 15:17:56
2025-04-16 15:02:00
2025-04-09 15:31:29
热门工具
标签选择
阅读排行
我的评论
还未登录?点击登录