首先安装好epel源 yum install -y nginx php-fpm vim /etc/nginx/conf.d/virthost.conf vim /usr/local/xiaolong/xiaolong1/index/php <?php phpinfo(); ?> 完成