Linux

How To Restart an Apache Web Server (Linux)

  1. Login to your Web server machine using SSH or telnet.
  2. Su to root.
  3. Run the apache control program:
    apachectl graceful
  4. You can also run the apache control program in this way:
    apachectl restart

To stop it : apachectl stop

Use the wget command to download files to a remote Unix/Linux workstation

Suppose you're working on a Unix/Linux machine remotely through an SSH session, and then you need to get a resource (like a tar or gzip file) that's on the Internet to that machine. Well, you could download that file to your local machine, and then use scp to copy it to your remote Unix box. Or ... you can get the URL for the resource on your local workstation, copy the URL, and then use wget on the remote workstation and download it directly to that machine.