apt-get install tomcat8
Creating config file /etc/default/tomcat8 with new version Adding system user `tomcat8' (UID 125) ... Adding new user `tomcat8' (UID 125) with group `tomcat8' ... Not creating home directory `/usr/share/tomcat8'. Creating config file /etc/logrotate.d/tomcat8 with new version initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused insserv: warning: script 'cron' missing LSB tags and overrides insserv: Default-Start undefined,assuming empty start runlevel(s) for script `cron' insserv: Default-Stop undefined,assuming empty stop runlevel(s) for script `cron' initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused insserv: warning: script 'friendly-recovery' missing LSB tags and overrides insserv: Default-Start undefined,assuming empty start runlevel(s) for script `friendly-recovery' insserv: Default-Stop undefined,assuming empty stop runlevel(s) for script `friendly-recovery' Processing triggers for systemd (229-4ubuntu11) ... Processing triggers for ureadahead (0.100.0-19) ... 原文链接:https://www.f2er.com/ubuntu/355856.html