08 January 2014

How to start restart Apache Mysql in FreeBSD

Some times we forget how to start and restart Apache or mysql.
This is command for start restart apache and mysql in FreeBSD operating system.


[ Apache ]
To start:
/usr/local/etc/rc.d/apache22 start

To stop:
/usr/local/etc/rc.d/apache22 stop

To restart:
/usr/local/etc/rc.d/apache22 restart

To restart without aborting open connections:
/usr/local/etc/rc.d/apache22 graceful

[MySQL]
Task: Start MySQL server

Type the following command:
# /usr/local/etc/rc.d/mysql-server start

Task: Stop MySQL server

Type the following command:
# /usr/local/etc/rc.d/mysql-server stop

I hope it's help Cheers...

No comments: