Remove wildfly server


If you are not using something throw it away, I’m serious, doesn’t matter how long it took previously to install and configure this if you don’t need this anymore, remove this immediately

check what type of port are open on your machine (from outside)

nmap -sC 127.0.0.1

check what type of port are open on your machine (from inside)

sudo netstat -lptu
sudo netstat -tulpn

assume that we found wildfly service but we don’t use this any more

got to wildfly folder

cd /opt/wildfly/bin

stop server

./jboss-cli.sh  --connect command=:shutdown

check if server is listed under service list

service --status-all
service --status-all | grep wildfly

check the status of service

service wildfly status

remove systemd services

systemctl | grep wildfly
systemctl stop wildfly
systemctl disable wildfly
systemctl daemon-reload
systemctl reset-failed

remove application server

rm -r /opt/wildfly/