2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LightSailのApache・MySQL等のコマンド・パスまとめ

Posted at

最近ちょくちょくLightSailを使用するのですが、ApacheなどのコマンドがEC2と違って困ることが多いので備忘録としてまとめました。

Apache

コマンド

# ステータス確認
sudo /opt/bitnami/ctlscript.sh status apache
# 起動
sudo /opt/bitnami/ctlscript.sh start apache
# 停止
sudo /opt/bitnami/ctlscript.sh stop apache
# 再起動
sudo /opt/bitnami/ctlscript.sh restart apache

パス

# 主な設定ファイル
/opt/bitnami/apache2/conf/bitnami/bitnami.conf
/opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf

MariaDB

コマンド

# 初期rootユーザーパスワードの確認
cat /home/bitnami/bitnami_application_password
# ステータス確認
sudo /opt/bitnami/ctlscript.sh status mariadb
# 起動
sudo /opt/bitnami/ctlscript.sh start mariadb
# 停止
sudo /opt/bitnami/ctlscript.sh stop mariadb
# 再起動
sudo /opt/bitnami/ctlscript.sh restart mariadb

昔使ってた時はmysqlだったような。。
その場合はmariadbをmysqlに置き換えれば動きます。多分。

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?