Menu
Menu

How to use basic SSH commands

Posted in Linux on April 17, 2017
Tags: ,

Here are some basic SSH commands. Some work in redhat linux, some work in freebsd. Just incase you were wondering on how to do these.

HOW TO CREATE NEW FTP USER IN SSH:

  • ftpnew /usr/www/virtual/
  • ftp WWW.DOMAIN.COM

HOW TO RESTART APACHE SSH COMMAND:

  • /www/apache/bin/apachectl - restart
    (or try this)
  • /www/apache/bin/apachectl - stop
  • /www/apache/bin/apachectl - start
    (or try this)
  • /usr/local//libexec/apachectl radical restart

HOW TO RESTART MYSQL SSH COMMAND:

  • /usr/local/etc/rc.d/mysql-server.sh restart

These worked for me. So if they work for you great! If not, then I suppose you'll have to do some more searching Google.

Leave a Reply

Your email address will not be published. Required fields are marked *