fix config bug,deal first run bug.
rtrim slash
add default resover.