Adicionar ao BuildConfig.groovy:
grails.server.port.http = 8090 //ou outra porta
segunda-feira, 5 de setembro de 2016
Como fazer o Tomcat iniciar automaticamente no Linux Mint
$ sudo touch /etc/init.d/tomcat7
$ sudo vim /etc/init.d/tomcat7:
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh / /bin/startup.sh
}
stop() {
sh / /bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo "Run as $0"; exit 1;;
esac
$ sudo update-rc.d tomcat7 defaults
$ sudo vim /etc/init.d/tomcat7:
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh /
}
stop() {
sh /
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo "Run as $0
esac
$ sudo update-rc.d tomcat7 defaults
Assinar:
Postagens (Atom)