Yesterday, I created an EC2 Windows instance and started to get familiar with it.
But it was quite frustrating that I couldn't do anything after logging into the server, even downloading a file or installing Google Chrome.
I tried to modify the security settings of the IE browser, however, it didn't work.
The thing was much more complicated than I thought.
It didn't turn around until I found the article this morning
How do I configure an EC2 Windows instance to allow file downloads using Internet Explorer?
I was excited to restart the EC2 instance again and connected to it.
Choose <Server Manager>
Choose <Local Server>
In the IE Enhanced Security Configuration, just turn it off
Now I can do what I was capable of, Haha...
Installation List
1. https://git-scm.com/downloads
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR E-MAIL"
2. https://www.anaconda.com/products/individual
add conda-forge channel
My local Disk now has 17.4 GB left after installing Anaconda
3. Install Spyder
4. Install flask
5. Install line-bot-sdk
5. Install ngrok
6. start flask server app
Run lineBotTest.py
7. Testing results:
When the user inputs a new word, the LINE Bot will respond its link to the Cambridge dictionary
There is a session expiring problem if you don't have a ngrok account
Try to get your own token first and use it to get a free version of ngrok
> ngrok authtoken <YOUR AUTHTOKEN>
References
1. 使用 ngrok 代理伺服器穿透社區網路存取內網的樹莓派本機網站
2. https://www.intercom.com/blog/how-to-get-up-and-running-with-messenger-apps-using-ngrok/
Re