Upload
yukihiko-sawanobori
View
1.182
Download
1
Embed Size (px)
Citation preview
Z Cloud
Create your first SmartMachine in 10 minutes!
with Joyent Cloud-API
Sign up first!
https://my.z-cloud.jp/
And create your
Username and Password
Then set up your localhost
# npm install smartdc -g# ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
Install node module “smartdc” and generate ssh key.
Finally create a machine
# sdc-setup https://api.z-cloud.jpUsername (login): (zman) zmanPassword:SSH public key: (/home/zman/.ssh/id_rsa.pub) [Enter]snip..
# export SDC_CLI_URL=https//api.z-cloud.jp# export SDC_CLI_ACCOUNT=zman# export SDC_CLI_KEY_ID=zcloud# export SDC_CLI_IDENTITY=/home/zman/.ssh/id_rsa
And…
Finally create a machine
# sdc-createmachine --dataset sdc:sdc:smartos64:1.4.7 \--name my-first-smsnip..“ips”:[
“210.xxx.xxx.xxx”]snip..# ssh root@210. xxx.xxx.xxx[root@my-first-sm] #
Now you logged into your first SmartMachine!
End
Joyent / node-smartdchttps://github.com/joyent/node-smartdc.git
Joyent Cloud APIhttps://api.z-cloud.jp/
Z Cloud – Manage Portal *Please sign up here!
https://my.z-cloud.jp/