dinsdag 4 januari 2011

Linux Servers For Beginners ( Commands/Install )

Hey all,

Thank you for visting my Blog.

In this "Tutorial" i learn you a few Linux commands.


How to download a file with SSH ( PuTTy ):
Login into your SSH Terminal with your username ( usually root ) and password.
Make a Folder/Direcotry and type into the Console/terminal : mkdir download <--- You can name "download" to anything you want.
Now type cd download and you are in the download folder.
Now if you want to download somethinf type in wget http://downloading.com/thefileyouwanttodownload.anyhting ZIP, TAR.GZ etc.


Now im gonna learn you how to install an apache/httpd server and a mysql-server.
I'm using Fedora and CentOS 5

Login into your Terminal with root
Now type:
yum install httpd mysql-server mysqld
You will see some "questions" Such as are you sure (n/Y) always type Y.

Now start the apache and the mysql server with service httpd start and service mysqld start

Now you are ready to go and host some websites


How to see how many Ram/Memory you are using:
Type into console/terminal free -m that will show you how many MB ram you have free/used.


Do you want to know what processes you have on your server?
Type into console/terminal ps ax|more or ps ax


Do you want to add an extra SSH user:
Type into console useradd username
Make a password for the user by typing in: passwd username

Do you want to reboot the server with SSH/Shell:
Type in /sbin/reboot [-n] [-w] [-d] [-f] [-i]

-n = Don't sync before reboot or halt.
-w = Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
-d = Don't write the wtmp record. The -n flag implies -d.
-f = Force halt or reboot, don't call shutdown(8).
-i = Shut down all network interfaces just before halt or reboot.
-h = Put all harddrives on the system in standby mode just before halt or poweroff.
-p = When halting the system, do a poweroff. This is the default when halt is called as poweroff.

Geen opmerkingen:

Een reactie posten