在终端打php -a时,看到“Interactive mode enabled”?如下是解决方案。php
编译PHP的时候注意:code
configure --with-readline
apt-get install libreadline* libreadline*-dev