LoginSignup
0
0

More than 1 year has passed since last update.

[Laravel EC2] EC2にあるログファイルをローカルにコピーする

Last updated at Posted at 2021-08-19

サーバーからログファイルなどをコピーするコマンド

以下のコマンドではec2にデプロイしているLaravelのプロジェクトにあるログファイルをデスクトップにコピーしてます

scpコマンドは、sshを利用してリモートからファイルコピーするコマンドです

 user_name$ scp -i .ssh/ec2_key.pem
 uec2-user@ipアドレス:/var/www/projectName/storage/logs/laravel-2021-08-10.log
 ./Desktop
0
0
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
0
0