Ubuntu 新しいページはコチラ
提供: yonewiki
(→Apacheのインストール) |
(→Apacheの起動・停止・再起動・状態確認・サーバ起動時に動かなくする(サービスの停止)・起動時に動くようにする(サービスの開始)) |
||
| 103行: | 103行: | ||
*サーバ起動時に動くようにする(サービスの起動) | *サーバ起動時に動くようにする(サービスの起動) | ||
sudo service apache2 start | sudo service apache2 start | ||
| − | * | + | *サーバ起動時に動かないようにする(サービスの停止) |
| − | sudo survice apache2 | + | sudo survice apache2 stop |
| + | |||
| + | |||
| + | *状態の確認 | ||
| + | |||
| + | 初期設定として、サービスを停止した状態('''sudo survice apache2 stop''')にして | ||
| + | sudo apt-get install lynx | ||
| + | |||
| + | として、lynxをインストールする。 | ||
| + | |||
| + | sudo /etc/init.d/apache2 status | ||
| + | |||
| + | その他 | ||
| + | sudo apache2ctl status | ||
| + | Apache Server Status for localhost | ||
| + | |||
| + | Server Version: Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 | ||
| + | Server Built: Jul 15 2016 15:32:45 | ||
| + | __________________________________________________________________ | ||
| + | |||
| + | Current Time: Xxxday, XX-Xxx-2017 XX:XX:XX JST | ||
| + | Restart Time: Xxxday, XX-Xxx-2017 XX:XX:XX JST | ||
| + | Parent Server Generation: 0 | ||
| + | Server uptime: XXXXXX seconds | ||
| + | Total accesses: 0 - Total Traffic: 0 kB | ||
| + | CPU Usage: u0 s0 cu0 cs0 | ||
| + | 0 requests/sec - 0 B/second - | ||
| + | 1 requests currently being processed, XX idle workers | ||
| + | |||
| + | _____W___________________....................................... | ||
| + | _________________________....................................... | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | |||
| + | Scoreboard Key: | ||
| + | "_" Waiting for Connection, "S" Starting up, "R" Reading Request, | ||
| + | "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup, | ||
| + | "C" Closing connection, "L" Logging, "G" Gracefully finishing, | ||
| + | "I" Idle cleanup of worker, "." Open slot with no current process | ||