Amazon web services and ubuntu 10.04 ec2 instance

后端 未结 3 1138
盖世英雄少女心
盖世英雄少女心 2021-01-02 17:21

I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the command sudo apt-get install sun-java6-jdk

相关标签:
3条回答
  • 2021-01-02 17:40

    I am a bit confused, if you just want to install Java and Tomcat, why are you also trying to install the ec2 tools?

    In any case, I also want to mention the free BitNami Cloud Tools installer (disclaimer: I am one of the developers). It includes the JDK and all EC2-related tools. We keep it fairly up-to-date and can run as a regular user.

    0 讨论(0)
  • 2021-01-02 17:46

    Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:

    deb http://archive.canonical.com/ubuntu maverick partner
    deb-src http://archive.canonical.com/ubuntu maverick partner
    

    and then:

    sudo apt-get update
    sudo apt-get install sun-java6-jdk
    

    ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).

    0 讨论(0)
  • 2021-01-02 17:58

    Another option is to add their official repository to apt - this will provide you up to date AWS tools:

    sudo apt-add-repository ppa:awstools-dev/awstools
    sudo apt-get update
    sudo apt-get install ec2-api-tools -y
    

    This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual

    sudo apt-get update
    sudo apt-get upgrade -y
    
    0 讨论(0)
提交回复
热议问题