
原因:
因为linux下面默认的Gii只能通过127.0.0.1来访问,也就是本机访问;
解决方法:
(相关教程推荐:yii框架)
在conf/main-local.php添加自己的ip即可,如下:

更多编程相关内容,请关注php中文网编程入门栏目!
Das obige ist der detaillierte Inhalt vonyii2在linux下访问不到gii. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!