Cause:
Because the default Gii under Linux can only be accessed through 127.0.0.1, that is, local access;
Solution:
(Related tutorials recommended: yii framework)
Just add your own IP in conf/main-local.php, as follows:
For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of yii2 cannot access gii under linux. For more information, please follow other related articles on the PHP Chinese website!