在项目的conf/grails-app/BuildConfig.groovy文件最后面添加下面语句: grails.server.port.http=18080(可以改为其它机器任意不被占用的端口号) (默认端口号是Tomcat 8080)