如何在AWS亚马逊云上运行Angular应用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/88029940

这是我的亚马逊AWS登陆后的页面:

clipboard1

Using username “ubuntu”
Authenticating with public key “imported-openssh-key”
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1021-aws x86_64)

  • Documentation: https://help. ubuntu.com
  • Management: https://landscape. canonical.com* Support:. https://ubuntu. com/advantage
    System information as of Thu Feb 28 07:09:50 UTC 2019
    System load: 0.0sage of /: 18.8% of 15.45GBMemory usage: 7%Swap usage: 0%
    Processes:
    Users logged in:
    IP address for etho:
    134
    1
  • ‘snap info’ now shows the freshness of each channel.Try ‘snap info microk8s’ for all the latest goodness
    Get cloud support with Ubuntu Advantage Cloud Guest:http://www.ubuntu.com/business/services/cloud
    Canonical Livepatch is available for installation.
    Reduce system reboots and improve kernel security. Activate at:

切换到AWS上存放angular应用的文件夹下,命令ng build,然后:

ng serve --port 3000 --host 0.0.0.0

clipboard2

然后就能看到Angular应用运行在AWS上了:
clipboard3

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/88029940