LoginSignup
3
3

More than 5 years have passed since last update.

Apache、PHP、MySql、postfixコマンドメモ

Last updated at Posted at 2018-07-14

サーバを新規作成する機械があったので起動などのコマンドをメモ。
●Apache:ver2.4.6
起動:systemctl start httpd
再起動:systemctl restart httpd
停止:systemctl stop httpd
状態:systemctl status httpd
サービス自動起動有効:systemctl enable httpd

●PHP:ver7.2
起動:systemctl start php-fpm
再起動:systemctl restart php-fpm
停止:systemctl stop php-fpm
状態:systemctl status php-fpm
サービス自動起動有効:systemctl enable php-fpm
サービス自動起動無効:systemctl disable php-fpm
サービス自動起動設定確認:systemctl is-enabled php-fpm

●MySql:ver5.7
起動:systemctl start mysqld.service
再起動:systemctl restart mysqld.service
停止:systemctl stop mysqld.service
状態:systemctl status mysqld.service
サービス自動起動有効:systemctl enable mysqld.service

●postfix:ver3.3.1
※ソースからインストールした。
起動:postfix start
再起動:postfix reload
停止:postfix stop
状態:postfix status
設定確認:postconf
設定初期値確認:postconf -d
現在と初期値の設定差分確認:postconf -n
バージョン確認:postconf | grep mail_version

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3