You don't want to change /etc/services as it is simply a directory of mappings between well known service names and ports.
Tomcat runs as the user tomcat4 on RedHat 7.x. This user is unable to bind to port 80. People have had success with changing the user to root, but this is generally considered a bad way of doing things. You'll want to check the mail archives as this has been discussed quite a bit. [EMAIL PROTECTED] wrote: >I looked in /etc/services and found >... >ttp 80/tcp www www-http # WorldWideWeb HTTP >http 80/udp www www-http # HyperText Transfer Protocol >... > >I'm not sure how got there unless it was just part of RedHat 7.3. Im not >running Apache or any other web server. Im trying to use Tomcat4 as my >Web server. Should I change /etc/services and if so how? > >thanks again > > > >>-- Original Message -- >>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >>From: "Arthur Chan" <[EMAIL PROTECTED]> >>To: "Tomcat Users List" <[EMAIL PROTECTED]> >>Subject: Re: How to use Port 80? >>Date: Sat, 21 Sep 2002 23:50:41 -0400 >> >> >>Normally that's the default - Apache (not Tomcat) uses it. >>Look at httpd.conf , the "Listen" directive, should read something like >>192.168.4.5:80 ie the ip-addr:port >>In default RH u will find that under /etc/httpd/conf >>To look at a static list of port assignments : /etc/services >>I am not sure what u r tyring to do , but I hope that's helpful. >> >>----- Original Message ----- >>From: <[EMAIL PROTECTED]> >>To: "Tomcat Users List" <[EMAIL PROTECTED]> >>Sent: Saturday, September 21, 2002 11:36 PM >>Subject: Re: How to use Port 80? >> >> >> >> >>>not intentionally, how would I know if I did that? >>> >>> >>> >>>>-- Original Message -- >>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >>>>From: "Arthur Chan" <[EMAIL PROTECTED]> >>>>To: "Tomcat Users List" <[EMAIL PROTECTED]> >>>>Subject: Re: How to use Port 80? >>>>Date: Sat, 21 Sep 2002 23:34:53 -0400 >>>> >>>> >>>>Could you have assigned 80 to HTTP requests already ??? >>>> >>>>----- Original Message ----- >>>>From: <[EMAIL PROTECTED]> >>>>To: <[EMAIL PROTECTED]> >>>>Sent: Saturday, September 21, 2002 11:03 PM >>>>Subject: How to use Port 80? >>>> >>>> >>>> >>>> >>>>>Hi >>>>> >>>>>Im running Tomcat 4.1.10 on Red Hat 7.3. >>>>> >>>>>Im trying to change the port to 80 from 8080. >>>>> >>>>>I made the following change in my server.xml >>>>> >>>>>From: >>>>> >>>>><Connector className="org.apache.coyote.tomcat4.CoyoteConnector" >>>>> port="8080" minProcessors="5" maxProcessors="75" >>>>> enableLookups="true" redirectPort="8443" >>>>> acceptCount="10" debug="0" connectionTimeout="20000" >>>>> useURIValidationHack="false" /> >>>>> >>>>>to: >>>>> >>>>><Connector className="org.apache.coyote.tomcat4.CoyoteConnector" >>>>> port="80" minProcessors="5" maxProcessors="75" >>>>> enableLookups="true" redirectPort="8443" >>>>> acceptCount="10" debug="0" connectionTimeout="20000" >>>>> useURIValidationHack="false" /> >>>>> >>>>>then I restart Tomcat4 with the Service Configuration utility and >>>>> >>>>> >I > > >>get >> >> >>>>>the following message in the browser when I go to http://localhost >>>>> >>>>>An error occured while loading http://localhost/: >>>>> >>>>>Could not connect to host localhost >>>>> >>>>>Thanks in advance for any help >>>>>Hal Haig >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>-- >>>>>To unsubscribe, e-mail: >>>>> >>>>> >>>><mailto:[EMAIL PROTECTED]> >>>> >>>> >>>>>For additional commands, e-mail: >>>>> >>>>> >>>><mailto:[EMAIL PROTECTED]> >>>> >>>> >>>>-- >>>>To unsubscribe, e-mail: >>>> >>>> >><mailto:[EMAIL PROTECTED]> >> >> >>>>For additional commands, e-mail: >>>> >>>> >><mailto:[EMAIL PROTECTED]> >> >> >>>-- >>>To unsubscribe, e-mail: >>> >>> >><mailto:[EMAIL PROTECTED]> >> >> >>>For additional commands, e-mail: >>> >>> >><mailto:[EMAIL PROTECTED]> >> >> >>-- >>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> >> >> >> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
