Before input 'gpio readall', need install wiringPi

download "wiringPi":git clone git://git.drogon.net/wiringPi

enter the file of wiringPi

build and install: ./build 

Raspberry Pi 3 --- GPIO control-LMLPHP

04-15 13:43