1. Install tomcat7
sudo apt-get install tomcat7 tomcat7-admin
2. Add a tomcat manage user
sudo vi /etc/tomcat7/tomcat-users.xml
Add the following data piece:
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
3. Increase upload size
sudo vi /usr/share/tomcat7-admin/manager/WEB-INF/web.xml
find and increase the value of <max-file-size> and <max-request-size> to 152428800
4. sudo service tomcat7 restart
5. download deb package of opendj and install: sudo dpkg -i opendj_3.0.0-1_all.deb
6. sudo /opt/opendj/setup
7. In "Directory Data" step, create our own directory, eg. dc=example,dc=com
Select Create Base Entry
8. Open http://tomcat-server:8080, click manage webapp, input username and password in step 2. Choose OpenAM war file to deploy
9. chown tomcat7 /usr/share/tomcat7
chown -R tomcat7 /usr/share/tomcat7/*
10. click openam in the tomcat manage page and login with amAdmin
参考:https://www.youtube.com/watch?v=DqUcCfty8uw