sudo apt-get install tomcat7-docs
apt-get install tomcat7-examples
apt-get install tomcat7-admin
vi /etc/tomcat7/tomcat-users.xml
<tomcat-users>
<role rolename="takahab"/>
<user username="takahab" password="xxxxxxxx" roles="manager-gui"/>
</tomcat-users>
http://localhost:8080
ROOT:/var/lib/tomcat7/webapps/ROOT
万歳!!
ついでに
apt-get insatall jenkins
ln -s /usr/share/jenkins/jenkins.war /var/lib/tomcat7/webapps/jenkins.war
vi /var/lib/tomcat7/webapps/jenkins/WEB-INF/web.xml
<env-entry>
<env-entry-name>JENKINS_HOME</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>/var/lib/tomcat7/webapps/jenkins</env-entry-value>
</env-entry>
ついでに
apt-get insatall jenkins
ln -s /usr/share/jenkins/jenkins.war /var/lib/tomcat7/webapps/jenkins.war
vi /var/lib/tomcat7/webapps/jenkins/WEB-INF/web.xml
<env-entry>
<env-entry-name>JENKINS_HOME</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>/var/lib/tomcat7/webapps/jenkins</env-entry-value>
</env-entry>
0 件のコメント:
コメントを投稿