手机端下拉列表
400-002-9968

博客 > 【Plesk经验分享】域名重新配置失败怎么办?

【Plesk经验分享】域名重新配置失败怎么办?

  • 标签:
  • plesk
  • 域名配置

浏览量:4156次评论: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

我的评论

还未登录?点击登录

微信扫码沟通
微信扫码沟通

微信扫码沟通

售前咨询
合作
售后
return head