Freelance projects

Wednesday, July 25, 2012

Linux useful server command

Command to get the running services on port in linux 

netstat -lnp | grep :80 

Start and stop the server on Linux

Start, stop, or restart Flash Media Server using fmsmgr

  1. Log in as a root user.
  2. Change to the directory where the server is installed.
  3. Open a shell window and type one of the following:
    • ./fmsmgr server start
    • ./fmsmgr server stop
    • ./fmsmgr server restart

 

If you are using mysql on RedHat Linux (Fedora Core/Cent OS) then use following command:

* To start mysql server:
/etc/init.d/mysqld start
* To stop mysql server:
/etc/init.d/mysqld stop
* To restart mysql server
 /etc/init.d/mysqld restart 

No comments: