Jenkins: 02 - Install on Tomcat
PreReq: JDK7/8
Add tomcat user & add to sudoer list
sudo adduser tomcat sudo passwd tomcat Changing password for user tomcat. New password: Retype new password: passwd: all authentication tokens updated successfully. sudo gpasswd -a tomcat wheel Adding user tomcat to group wheel
Create tomcat group & adduser
sudo groupadd tomcat
Then create a new tomcat user. We'll make this user a member of the tomcat group, with a home directory of /opt/tomcat (where we will install Tomcat), and with a shell of /bin/false (so nobody can log into the account):
sudo useradd -M -s /bin/nologin -g tomcat -d /opt/tomcat tomcat
Now that our tomcat user is set up, let's download and install Tomcat.
