顯示具有 aws 標籤的文章。 顯示所有文章
顯示具有 aws 標籤的文章。 顯示所有文章

2015年8月21日 星期五

SCP 下載遠端 server 上的檔案

複製 AWS  ubuntu 上的檔案到自己的本機,可以使用 SCP 指令。

要看完整的 scp (secure copy) 指令就 man 一下吧 (man scp)。


如果你是要用 pem 去登入的話:
公式:
scp -r -i [pem file path]  user@host:[server folder path] [local destination path]

範例:
scp -r -i your_server.pem  ubuntu@ip_or_domain:/var/www/XXXX/  /tmp/目的地資料夾


-r 是遞迴的意思,因為複製的檔案可能是好幾層的資料夾。
-i 是 identity_file 的意思,所以後面的參數就是接 pem 檔的路徑。


因為每次都忘記,所以特別紀錄一下。

Vue multiselect set autofocus and tinymce set autofocus

要在畫面一進來 focus multiselect 的方式: 參考: https://jsfiddle.net/shentao/mnphdt2g/ 主要就是在 multiselect 的 tag 加上 ref (例如: my_multiselect), 另外在 mounted...