huacnlee / init.d

⚙️ Batch scripts for Rails production environment install on Ubuntu Server.
679 stars 239 forks source link

redis-server脚本获取Port错误 #7

Closed kevyu closed 10 years ago

kevyu commented 10 years ago

redis-server中下面的命令得到的port值是0

LISTENING_PORT=`grep -E "port +([0-9]+)" "$CONFIG_FILE" | grep -Eo "[0-9]+"`

应该是错误地取了comment 中的值。