apachectlを使用してみる

apachectlには数種類の機能があります。
1.Apacheの起動
2.Apacheの停止
3.Apacheの再起動
4.Apacheの状態表示(Full)
5.Apacheの状態表示
6.Apacheの再起動
7.Apacheコンフィギュレーションファイルの文法チェック

1.Apacheの起動
以下のコマンドを入力することでApacheを起動することができます。
	[root@tl01 bin]# ./apachectl start
	./apachectl start: httpd started
	[root@tl01 bin]#
	
2.Apacheの停止
以下のコマンドを入力することでApacheを停止することができます。
	[root@tl01 bin]# ./apachectl stop
	./apachectl stop: httpd stopped
	[root@tl01 bin]#
	
3.Apacheの再起動
以下のコマンドを入力することでApacheを再起動することができます。
	[root@tl01 bin]# ./apachectl restart
	./apachectl restart: httpd restarted
	[root@tl01 bin]#
	
4.Apacheの状態表示(Full)
以下のコマンドを入力することでApacheを状態表示することができます。
lynxとmod_statusを使用します。あれ? 何か変!
	[root@tl01 bin]# ./apachectl fullstatus

									   Forbidden

	   You don't have permission to access /server-status on this server.
		 _________________________________________________________________


		Apache/1.3.4 Server at www.hisapon.gr.jp Port 80
	[root@tl01 bin]#
	
5.Apacheの状態表示
以下のコマンドを入力することでApacheを状態表示することができます。
lynxとmod_statusを使用します。あれ? 何か変!
	[root@tl01 bin]# ./apachectl status

									   Forbidden

	   You don't have permission to access /server-status on this server.
		 _________________________________________________________________


		Apache/1.3.4 Server at www.hisapon.gr.jp Port 80
	[root@tl01 bin]#	
6.Apacheの再起動
以下のコマンドを入力することでApacheを再起動することができます。
	[root@tl01 bin]# ./apachectl graceful
	./apachectl graceful: httpd gracefully restarted
	[root@tl01 bin]#
	
7.Apacheコンフィギュレーションファイルの文法チェック
以下のコマンドを入力することでApacheコンフィギュレーションファイルの文法チェックをすることができます。
	[root@tl01 bin]# ./apachectl configtest
	Syntax OK
	[root@tl01 bin]#