熱門文章

2017年2月7日 星期二

AWS EC2 SFTP

使用SFTP來上傳檔案

  • 需要私鑰,但必須轉成.ppk格式
  • FileZilla 
  • Host
  • 帳號密碼


Using An SSH Key

Once you have your server's SSH key, choose your preferred application and follow the steps below to connect to the server using SFTP.
FileZilla
IMPORTANT: To use FileZilla, your server private key should be in PPK format.
Follow these steps:
  • Download and install FileZilla.
  • Launch FileZilla and use the "Edit -> Settings" command to bring up FileZilla's configuration settings.
  • Within the "Connection -> SFTP" section, use the "Add keyfile" command to select the private key file for the server. FileZilla will use this private key to log in to the server.FileZilla configuration
  • Use the "File -> Site Manager -> New Site" command to bring up the FileZilla Site Manager, where you can set up a connection to your server.
  • Enter your server host name and specify bitnami as the user name.
  • Select "SFTP" as the protocol and "Ask for password" as the logon type.FileZilla configuration
  • Use the "Connect" button to connect to the server and begin an SFTP session. You might need to accept the server key, by clicking "Yes" or "OK" to proceed.

aws ec2 如何透過ssh使用phpmyadmin

使用marketplace快速安裝wordpress後,我想要使用phpmyadmi來操作MySQL 卻發現

For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.

不能直接用瀏覽器,必須透過以下方法:




原文

For security reasons, these applications are accessible only when using 127.0.0.1 as the hostname. To access them from a remote system, you must create an SSH tunnel that routes requests to the Apache Web server from 127.0.0.1. This implies that you must have an SSH private key and be able to connect to your server over SSH in order to access these applications remotely.

Linux And Mac OS X

To access the application using your Web browser, create an SSH tunnel, as described below.
  • Make sure you can log in to the server using SSH. Refer to the FAQ for more information on this.
  • Open a new SSH session to the server using the command below:
     ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP
    
    Remember to replace KEYFILE in the previous commands with the path to your private key file, and SERVER-IPwith the IP address or hostname of your virtual machine. Note that if successful, this command will create an SSH tunnel but will not display any output on the server console.
While the tunnel is active, you should be able to access the phpMyAdmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin.


盡量翻譯出來.....


因為安全因素,這程式僅能允許主機(指雲端server)本地連線。如需遠端存取(就是你在用的這台client),你必須經由SSH方式向主機的apache伺服器提出請求。這表示你必須有SSH私鑰才能透過SSH連到server進而使用該程式。

Linux and Mac

使用瀏覽器存取此程式前,你必須透過SSH方式,步驟如下:

  • 確定你能夠透過SSH登入server
  • 另開視窗,使用以下command:

 ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP
keyfile : 你的私鑰。可以直接拖曳檔案得到私鑰路徑避免打錯
bitnami@SERVER-IP :下圖紅框即是



輸入後終端機並不會有任何的反應,請直接到瀏覽器輸入 http://127.0.0.1:8888/phpmyadmin

完成!!

參考 參考2

[ubuntu]錯誤fix :LC_ALL跟LANGUAGE為unset

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "zh_TW.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Preconfiguring packages ...


網路上看到很多解決方法而我是這樣解的...  

/etc/default 編輯 locale   前必須先更改權限(777很危險之後再改回來)


ubuntu@ip-172-31-28-55:/etc/default$ sudo chmod 777 locale
ubuntu@ip-172-31-28-55:/etc/default$ vim locale




LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"


再執行就過了....卡好久shot


2017年1月16日 星期一

查理斯王騎士犬


查理士王小獵犬(King Charles Spaniel,Cavalier King Charles Spaniel)
是一種活潑、文雅、勻稱的玩具犬,非常華麗而且大方。具有喜歡運動、勇敢的特點,同時又是文雅、可愛的動物。在這一品種中,這種典型的貴族氣質非常重要,它包含了真正的高貴和王室的外貌。這一品種的本質是天然的,不需要經過修整、雕琢或人為改變。

歷史
歷史在德國,人們往往把小型的玩具獵犬與騎士查爾斯王小獵犬混淆。騎士查爾斯王小獵犬要小一些,並且嘴短。這兩種犬的祖先都是13世紀從意大利來到英國。安娜··克雷夫、海因里希8世的第四位夫人,把它們帶進英國宮廷。伊麗莎白一世統治時期,在油畫當中可以經常看到它們的身影。它們總是臥在主人的腳旁,給主人暖腳。最出名的當數瑪利亞·斯圖爾特餵養的犬。
概覽
查理士王小獵犬是一種活潑、文雅、勻稱的玩具犬,非常華麗而且大方。具有喜歡運動、勇敢的特點,同時又是文雅、可愛的動物。在這一品種中,這種典型的貴族氣質非常重要,它包含了真正的高貴和王室的外貌。這一品種的本質是天然的,不需要經過修整、雕琢或人為改變。
性格
性格這種犬安靜、溫和、喜歡與人接近、聽主人的話,如果它們能夠與主人在一起的話,將會感到非常幸福。
氣質
快樂、聰明、玩具小獵犬,內向、溫柔且親切。
毛色與類型
毛髮:長且柔軟,直發或略微的捲曲是允許的。 顏色:黑色和褐色(當時被稱為查爾斯國王)三色犬(當時被稱為查爾斯王子)白色中帶一片一片的紅色、紅寶石色(栗子紅)。
遺傳病

一般來說,該犬沒有已知遺傳問題。




來源:http://www.wgpet.com/dog-king-charles-spaniel/