你可以把ip加到nginx配置文件:/usr/local/nginx/conf/vhost/demo.linuxeye.com.conf 的server_name xxx.com ip; 格式,service nginx reload