crap. pre installed software
i ordered a new dedicated server, with centos 4 blah blah blah. unfourtanetly the provider thought they were doing a favor by pre installing all sorts of software onto my server, which i didn't want any of it. i just wanted the bare minimum needed to have SSH access to the server.
theres all sorts of things on it. when i type in top i get a list of 100 things running. I know some of them are important but i know alot of them arent. i only have about 50 megs free (of 1,000 megs of ram !) becasue theres so much crap running I would tell them to reinstall the OS but without the crap. But i need the server online so i need to do this on my own. is there a way to output the output of top to a logfile to paste here? right now my biggest concern is "couriertcpd" and "courierlogger" which are running multiple instances. google says their for something involved TCP connections so im not sure if i should go ahead and kill them |
Installing is one thing and running is another. If you browse through your runlevel's init scripts, I'm sure you can stop and disable quite some processes. Having them installed will then just eat up disk, which is cheap.
Linux uses a maximum of memory for caching, so a high memory usage is not necessarily a problem. Type "free -m" and look at the "cached" column. As for your top question: "top -b -n 1 > outfile". |
i just got rid of a bunch of things, but i still only have about 100 megs of ram free. which now looking at this file makes even less sense....
Code:
top - 13:50:10 up 2 days, 2:51, 3 users, load average: 0.00, 0.00, 0.00 |
free -m ? "cached" value?
|
Code:
# free -m |
So if I understand that correctly, 70% (=1369/1961) of your memory is "abused" to speed up disk access and can be freed by the kernel any moment. 23% of your memory is really in use. No swap is used at all. That looks very fine to me.
|
oh ok,
so cached means, cached hard disk data? |
now what steps should i take to get rid of the pre installed software off of my disk? i dnot want to have to kill all the tasks again if i eve reboot or something.
is just deleting them (the files) suffice enough? |
Yes, that is my understanding.
|
Quote:
Quote:
Quote:
Quote:
|
Quote:
So, first stop the tasks using the scripts in /etc/init.d. Then you need to adjust what gets started. I don't use CentOS/RH, but this can get you started. |
chkconfig in CentOS should give you a nice text view of what services are set to run at startup..
It can then be used to change startup options. http://www.epicdesigns.co.uk/howto/server_services.php Theres a nice text tool available as well that you simply check and uncheck the services but I'm having trouble locating it.. |
All times are GMT -5. The time now is 08:17 PM. |