SlideShare uma empresa Scribd logo
1 de 2
-- http://aws.amazon.com --
Home > Your Account > Security Credentials

# Security Credentialsã ãらAccess Key ID, Secret Access Key㊮確認
Access Key ID: ****
Secret Access Key: ****

# X.509 Certificatesã*®ä½œæˆã€eダウンãƒãƒ¼ãƒ‰
cert-****.pem
pk-****.pem

-- AWS Management Console --
# AWS Management Console㠫移åã•ã€—ã€ãKey
PairsãM®ä½œæˆã€ 任意ãã®ãƒ•ã‚©ãƒ«ãƒ€ãK«æ ¼ç´ï¼ˆ~/ec2㐨仮定)
aws.pem

# CertificatesファイルをEC2ル転逫
cd ~/ec2
scp -i $EC2_HOME/aws.pem $EC2_PRIVATE_KEY root@ec2-
****.compute-1.amazonaws.com:/mnt
scp -i $EC2_HOME/aws.pem $EC2_CERT root@ec2-****.compute-1.amazonaws.com:/mnt



-- Ec2 --
# 一度è¨å®šã€™ã‚Œã2°ä¸è¦aãs§ãe™
# sshãã§EC2ãä«ãƒã‚°ã‚¤ãƒ³
ssh -i ec2KeyPairs.pem root@ec2-****.compute-1.amazonaws.com

# Amazon EC2 AMI Tools ão®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
rpm -ivh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm
# curl -O http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm

# パス㠮確認
$ which ec2-bundle-vol
/usr/local/bin/ec2-bundle-vol

# Developper ToolsãbãらAmazon EC2 API Toolsをダウンãƒãƒ¼ãƒ‰
$ cd /usr/local/src
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-
tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9
# ファイルを解凍
unzip ec2-api-tools.zip
# ec2-api-tools-1.3-45772ãA¨ã8„ã8†ãƒ•ã‚¡ã‚¤ãƒ«ã3«ã9ªã‚Šãã¾ãl™ã€‚
cd ec2-api-tools-1.3-45772/
mv bin /mnt
mv lib /mnt

# Javaランタイムをインストール
wget -O jre-6u17-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?
BundleId=35674
# 実行権限を付与
chmod +x jre-6u17-linux-i586-rpm.bin
sudo ./jre-6u17-linux-i586-rpm.bin
# 上記ãe®ãƒã‚¤ãƒŠãƒªãƒ•ã‚¡ã‚¤ãƒ«ã‚’実行ãv
¢ãäŒç¶šãããã¾ãã™ã€‚ãã™ãã¹ã㦠Y(yes)を錸択㛗ãã¾ã¨™
#
RPMãç§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãã—ã Ÿå ´åˆã§¯å®Ÿãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŸ¯ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒ
ªãƒ³ã‚¯ã®Œå¼µã‚‰ã‚Œã‚¾ãƒ™ãƒ®ãŸ§ /usr/java/latest
㠨㵠„㠆ディレクトリ㼠«å¯¾ãð —ãÅ ¦Pathを通ãs—ã’¾ãM™ã€‚

# EC2ãã®ç’°å¢ƒå¤‰æ•°ãã®è¨å®š
$ vim ~/.bash_profile

export   EC2_HOME=/mnt
export   PATH=$PATH:$EC2_HOME/bin
export   EC2_PRIVATE_KEY=$EC2_HOME/pk-****.pem
export   EC2_CERT=$EC2_HOME/cert-****.pem
export   JAVA_HOME=/usr/java/latest

# 環境変数ãã®æ›´æ–°
source ~/.bash_profile

# ec2verã.¨å…¥åŠ›ãf—ã€j「1.3-45772 2009-10-31」ãs®ã‚ˆãM†ã€ «è¡¨ç¤ºã •ã‚Œã‚ŒãŠ
                                                                    »
°ãƒ‘スãã¯é€šãå£ãã¦ãã„ãã¾ã1™ã€‚
$ ec2ver
1.3-45772 2009-10-31



-- S3ã7¸ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’登録 --
# mntディレクトリ㙸移åã•
cd /mnt/

# イメージを作成㙙ã‚ã
ec2-bundle-vol -d /mnt --privatekey pk-****.pem --cert cert-****.pem --user ****
--fstab /etc/fstab
# Please specify a value for arch [i386]:ã* ¨èe žã ãã‚Œãt Ÿã‚‰ã- ã* ®ãp ¾ã ¾ãƒªã‚¿ãƒ¼ãƒ³

# S3ãa«ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’é€ ã‚ã
ec2-upload-bundle --bucket **** --manifest image.manifest.xml --access-key ****   --
secret-key ****

# イメージを登録ãe™ã‚ã
# ****㡯S3カ作成㌗ãeŸãƒã‚±ãƒƒãƒˆå
ec2-register ****/image.manifest.xml -n ****

# 自分ãt§ç™»éŒ²ãi—ãgŸAMIを確認㠗㠟ã*„時ã.¯
ec2-describe-images -o self

Mais conteúdo relacionado

Mais procurados (8)

Heavy Web Optimization: Backend
Heavy Web Optimization: BackendHeavy Web Optimization: Backend
Heavy Web Optimization: Backend
 
Add title shortcode
Add title shortcodeAdd title shortcode
Add title shortcode
 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
 
Introduksjon til web sikkerhet
Introduksjon til web sikkerhetIntroduksjon til web sikkerhet
Introduksjon til web sikkerhet
 
Locking down word press
Locking down word pressLocking down word press
Locking down word press
 
Making Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking itMaking Joomla Insecure - Explaining security by breaking it
Making Joomla Insecure - Explaining security by breaking it
 
Sessions and cookies in php
Sessions and cookies in phpSessions and cookies in php
Sessions and cookies in php
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013
 

Destaque

O Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio EletrônicoO Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio Eletrônico
Ana Amelia Menna Barreto
 
Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09
claudinapires
 
Joao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais EspecificosJoao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais Especificos
João Alves Dos Reis
 
El RincóN De Los Poemas
El RincóN De Los PoemasEl RincóN De Los Poemas
El RincóN De Los Poemas
guestfe2a8d6
 
Relatório
RelatórioRelatório
Relatório
stassie
 
Marca-páginas mascota
Marca-páginas mascotaMarca-páginas mascota
Marca-páginas mascota
srvbest
 
evaluación simce c naturales ii 6° 2014
 evaluación simce c naturales ii  6°   2014 evaluación simce c naturales ii  6°   2014
evaluación simce c naturales ii 6° 2014
7z7z1541
 
Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010
Gleisi Hoffmann
 
deber de martha shigla
deber de martha shigladeber de martha shigla
deber de martha shigla
shigla
 

Destaque (20)

O Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio EletrônicoO Mandado de Segurança por Meio Eletrônico
O Mandado de Segurança por Meio Eletrônico
 
Diretoria Do Sintect 6
Diretoria Do Sintect  6Diretoria Do Sintect  6
Diretoria Do Sintect 6
 
The hard road to electronic invoicing
The hard road to electronic invoicingThe hard road to electronic invoicing
The hard road to electronic invoicing
 
Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09Guia Da Unidade Mabe Escola T2 Nov09
Guia Da Unidade Mabe Escola T2 Nov09
 
Joao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais EspecificosJoao Reis Sessao 7 Forum2 Gerais Especificos
Joao Reis Sessao 7 Forum2 Gerais Especificos
 
Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.Diseño de investigación. Unidad IV.
Diseño de investigación. Unidad IV.
 
El RincóN De Los Poemas
El RincóN De Los PoemasEl RincóN De Los Poemas
El RincóN De Los Poemas
 
Relatório
RelatórioRelatório
Relatório
 
S65
S65S65
S65
 
Mapa Metro
Mapa MetroMapa Metro
Mapa Metro
 
Atividades34avaliacao
Atividades34avaliacaoAtividades34avaliacao
Atividades34avaliacao
 
Marca-páginas mascota
Marca-páginas mascotaMarca-páginas mascota
Marca-páginas mascota
 
Edith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidadEdith métodos arte y diseño en la actualidad
Edith métodos arte y diseño en la actualidad
 
evaluación simce c naturales ii 6° 2014
 evaluación simce c naturales ii  6°   2014 evaluación simce c naturales ii  6°   2014
evaluación simce c naturales ii 6° 2014
 
Boletim informativo de Araçatuba - Outubro de 2009
Boletim informativo de Araçatuba - Outubro de 2009Boletim informativo de Araçatuba - Outubro de 2009
Boletim informativo de Araçatuba - Outubro de 2009
 
Portafolio evaluación sem3
Portafolio evaluación sem3Portafolio evaluación sem3
Portafolio evaluación sem3
 
Act2 sudb
Act2 sudbAct2 sudb
Act2 sudb
 
Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010Artigo: Retrospectiva e Expectativas 2010
Artigo: Retrospectiva e Expectativas 2010
 
deber de martha shigla
deber de martha shigladeber de martha shigla
deber de martha shigla
 
software libre
software libresoftware libre
software libre
 

Semelhante a Ec2 Commands

Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Nick Maludy
 

Semelhante a Ec2 Commands (20)

The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
The Dynamic Duo of Puppet and Vault tame SSL Certificates - Puppet Camps Cent...
 
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick MaludyThe Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
The Dynamic Duo of Puppet and Vault tame SSL Certificates, Nick Maludy
 
Kafka security ssl
Kafka security sslKafka security ssl
Kafka security ssl
 
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
 
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release updateIntroduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
 
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
 
Java security
Java securityJava security
Java security
 
Rhel5
Rhel5Rhel5
Rhel5
 
Travis and fastlane
Travis and fastlaneTravis and fastlane
Travis and fastlane
 
Types of ssl commands and keytool
Types of ssl commands and keytoolTypes of ssl commands and keytool
Types of ssl commands and keytool
 
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
Stopping the Hassle of SSH keys by using SSH certificates - Community Summit ...
 
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Eoin Shanaghy's presenta...
 
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo..."Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
 
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online...
 
How to install ssl certificate from .pem
How to install ssl certificate from .pemHow to install ssl certificate from .pem
How to install ssl certificate from .pem
 
Application and Server Security
Application and Server SecurityApplication and Server Security
Application and Server Security
 
Securing your web apps now
Securing your web apps nowSecuring your web apps now
Securing your web apps now
 
EC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and PackerEC2 AMI Factory with Chef, Berkshelf, and Packer
EC2 AMI Factory with Chef, Berkshelf, and Packer
 
Making the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolMaking the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocol
 
WebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL ConfigurationWebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL Configuration
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Ec2 Commands

  • 1. -- http://aws.amazon.com -- Home > Your Account > Security Credentials # Security Credentialsã ãらAccess Key ID, Secret Access Key㊮確認 Access Key ID: **** Secret Access Key: **** # X.509 Certificatesã*®ä½œæˆã€eダウンãƒãƒ¼ãƒ‰ cert-****.pem pk-****.pem -- AWS Management Console -- # AWS Management Console㠫移åã•ã€—ã€ãKey PairsãM®ä½œæˆã€ 任意ãã®ãƒ•ã‚©ãƒ«ãƒ€ãK«æ ¼ç´ï¼ˆ~/ec2㐨仮定) aws.pem # CertificatesファイルをEC2ル転逫 cd ~/ec2 scp -i $EC2_HOME/aws.pem $EC2_PRIVATE_KEY root@ec2- ****.compute-1.amazonaws.com:/mnt scp -i $EC2_HOME/aws.pem $EC2_CERT root@ec2-****.compute-1.amazonaws.com:/mnt -- Ec2 -- # 一度è¨å®šã€™ã‚Œã2°ä¸è¦aãs§ãe™ # sshãã§EC2ãä«ãƒã‚°ã‚¤ãƒ³ ssh -i ec2KeyPairs.pem root@ec2-****.compute-1.amazonaws.com # Amazon EC2 AMI Tools ão®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« rpm -ivh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm # curl -O http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm # パス㠮確認 $ which ec2-bundle-vol /usr/local/bin/ec2-bundle-vol # Developper ToolsãbãらAmazon EC2 API Toolsをダウンãƒãƒ¼ãƒ‰ $ cd /usr/local/src wget http://s3.amazonaws.com/ec2-downloads/ec2-api- tools.zip&token=A80325AA4DAB186C80828ED5138633E3F49160D9 # ファイルを解凍 unzip ec2-api-tools.zip # ec2-api-tools-1.3-45772ãA¨ã8„ã8†ãƒ•ã‚¡ã‚¤ãƒ«ã3«ã9ªã‚Šãã¾ãl™ã€‚ cd ec2-api-tools-1.3-45772/ mv bin /mnt mv lib /mnt # Javaランタイムをインストール wget -O jre-6u17-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL? BundleId=35674 # 実行権限を付与 chmod +x jre-6u17-linux-i586-rpm.bin sudo ./jre-6u17-linux-i586-rpm.bin # 上記ãe®ãƒã‚¤ãƒŠãƒªãƒ•ã‚¡ã‚¤ãƒ«ã‚’実行ãv ¢ãäŒç¶šãããã¾ãã™ã€‚ãã™ãã¹ã㦠Y(yes)を錸択㛗ãã¾ã¨™ # RPMãç§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãã—ã Ÿå ´åˆã§¯å®Ÿãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŸ¯ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒ ªãƒ³ã‚¯ã®Œå¼µã‚‰ã‚Œã‚¾ãƒ™ãƒ®ãŸ§ /usr/java/latest
  • 2. 㠨㵠„㠆ディレクトリ㼠«å¯¾ãð —ãÅ ¦Pathを通ãs—ã’¾ãM™ã€‚ # EC2ãã®ç’°å¢ƒå¤‰æ•°ãã®è¨å®š $ vim ~/.bash_profile export EC2_HOME=/mnt export PATH=$PATH:$EC2_HOME/bin export EC2_PRIVATE_KEY=$EC2_HOME/pk-****.pem export EC2_CERT=$EC2_HOME/cert-****.pem export JAVA_HOME=/usr/java/latest # 環境変数ãã®æ›´æ–° source ~/.bash_profile # ec2verã.¨å…¥åŠ›ãf—ã€j「1.3-45772 2009-10-31」ãs®ã‚ˆãM†ã€ «è¡¨ç¤ºã •ã‚Œã‚ŒãŠ » °ãƒ‘スãã¯é€šãå£ãã¦ãã„ãã¾ã1™ã€‚ $ ec2ver 1.3-45772 2009-10-31 -- S3ã7¸ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’登録 -- # mntディレクトリ㙸移åã• cd /mnt/ # イメージを作成㙙ã‚ã ec2-bundle-vol -d /mnt --privatekey pk-****.pem --cert cert-****.pem --user **** --fstab /etc/fstab # Please specify a value for arch [i386]:ã* ¨èe žã ãã‚Œãt Ÿã‚‰ã- ã* ®ãp ¾ã ¾ãƒªã‚¿ãƒ¼ãƒ³ # S3ãa«ã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’é€ ã‚ã ec2-upload-bundle --bucket **** --manifest image.manifest.xml --access-key **** -- secret-key **** # イメージを登録ãe™ã‚ã # ****㡯S3カ作成㌗ãeŸãƒã‚±ãƒƒãƒˆå ec2-register ****/image.manifest.xml -n **** # 自分ãt§ç™»éŒ²ãi—ãgŸAMIを確認㠗㠟ã*„時ã.¯ ec2-describe-images -o self