Install and Configure Apache Tomcat in Netbeans Ubuntu
- If Tomcat is not installed yet, install it first
sudo apt-get install tomcat7
- And then configure like this
cd /usr/share/tomcat7
sudo mkdir common
cd common
sudo ln -s ../lib lib
cd ..
sudo mkdir conf
cd conf
sudo ln -s /etc/tomcat7/server.xml server.xml
sudo chmod o+rx /usr/share/tomcat7/conf
- Open service tab on upper left beside project tab
- Right click servers, add server
- Browse server location in /usr/share/tomcat7
- Enter username and password you want, for example I add "admin" for the username and password
- Open terminal and execute
sudo nano /etc/tomcat7/tomcat-users.xml
- Add this on the top of </tomcat-users>
<role rolename="admin-gui"/>
<user username="admin" password="admin" roles="admin-gui"/>
- Press Ctrl + O and the enter
sudo service tomcat7 restart
- Access your apache tomcat from browser in http://localhost:8080
- The root web directory located in /usr/share/tomcat7-root/default_root
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* : 8-} ~x( :-t b-( :-L x( =))
Post a Comment