Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-17-2005, 09:14 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 21
Rep:
|
Http and Ftp doesnt work
hi
i got my linux box running in shell mode only but for some reason when i try to access the webserver on it from another pc the servcies dont seem to be running.
when i boot up in KDE mode it works :S
any ideas on whats gone wrong?
also is there a command to show what servcies are running?
|
|
|
09-17-2005, 09:22 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You can see which processes are running with the ps command "ps -ef".
The services you are looking for are probably not set to run in runlevel 3. How you change this depends on your distribution.
|
|
|
09-17-2005, 07:12 PM
|
#3
|
LQ Newbie
Registered: Sep 2005
Posts: 21
Original Poster
Rep:
|
ok, i have redhat 9.
any ideas because i dont have a clue 
|
|
|
09-18-2005, 12:20 AM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Boot like you are going to boot into a desktop. Don't log in. This is runlevel 5. Hit "ctrl-alt-F1" for a login. The processes should be running. If not, goto /etc/init.d and find the shell scripts to start them, and run "sh scriptname option". There is usually a start option for everything in init.d. If that doesn't work, try the script option restart. To check if these start, or to see if they are running: "ps aux | less". Hit the space bar to scroll through the list. Hit pgup to scroll backwards through less.
Linux is just like a woman. If you don't properly read her needs, she gets stubborn. If you can just get your hand inside /etc/init.d, she will be obedient to you. It just takes a little experience. Experience is something you just can't buy. You earn it.
|
|
|
09-18-2005, 02:24 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 21
Original Poster
Rep:
|
ok they work now
but how do i either make them run at runlevel3 or make it not boot into a GUI at the start, just go into shellmode?
|
|
|
09-18-2005, 02:27 AM
|
#6
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
|
|
|
09-18-2005, 02:52 AM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 21
Original Poster
Rep:
|
lol now we are back to where we started last night.
when i change inittab to start at runlevel 3 im guessing, none of services like ftp/http/sql work, so is it possible to run those services at level 3 or will they only work at level 5?
|
|
|
09-18-2005, 07:22 AM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Just use chkconfig:
chkconfig httpd on
chkconfig vsftpd on
You can use the levels option to specify certain runleves where they should be started/stopped but these should be set to run in runlevel 3 in the init scripts anyway.
|
|
|
All times are GMT -5. The time now is 06:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|