andieje
asked on
jetty on ubunutu
Hi
I need to install jetty on ubuntu but i'm not really sure what i'm doing.
I did apt-get install jetty
and then it said it couldn't start the service as NO_START = 1 so i editted the file to N0_START = 0 as recommended and then started the service by service jetty start
I really don't know much about services under linux
Is this the correct way to start the service?
What permissions is the service running with? What user/group is it running under and how do i find out these details for a service?
thanks
I need to install jetty on ubuntu but i'm not really sure what i'm doing.
I did apt-get install jetty
and then it said it couldn't start the service as NO_START = 1 so i editted the file to N0_START = 0 as recommended and then started the service by service jetty start
I really don't know much about services under linux
Is this the correct way to start the service?
What permissions is the service running with? What user/group is it running under and how do i find out these details for a service?
thanks
ASKER
i editted the file before i started the service
I coulnd't install the 2 packages:
sudo apt-get install libjetty6-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjetty6-java is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libjetty6-java has no installation candidate
I coulnd't install the 2 packages:
sudo apt-get install libjetty6-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjetty6-java is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libjetty6-java has no installation candidate
ASKER
sudo apt-get install libjetty6-extra-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libjetty6-extra-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libjetty6-extra-java
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ah this sounds familar - i think i have been told this before: services start off as root and then drop down to the user specified in the config files. is that right?
Yes
These are the commands used to stop and start the service.
Open in new window
To install Jetty:Open in new window
Also, these libraries are also needed for Jetty to run correctly:Open in new window
If you've ran all these commands with sudo, you have installed them under ~root and they are running as such; with root permissions. I always check ubuntu forums for unbuntu related stuff.