创建PHAR文件: phar官方文档 查看phar.readonly的配置。需要修改php.ini文件设置 phar.readonly=0 否则: php -i | grep phar 编辑 index.php <?phpecho "This is a phar test ."……