yum install tomcat7 websocket code example Example: install tomcat on centos 7 sudo yum install tomcat-webapps tomcat-admin-webapps