go-example-webserver@Snappy Unbuntu Core On RaspberryPi2
前回の続き
webserverでパッケージ検索
(RaspberryPi2)ubuntu@localhost:~$ snappy search webserver Name Version Summary go-example-webserver 1.0.9 go-example-webserver xkcd-webserver 0.6 xkcd-webserver system-status.victor 1.0.10 System status web portal
go-example-webserverインストール
(RaspberryPi2)ubuntu@localhost:~$ sudo snappy install go-example-webserver Installing go-example-webserver Starting download of go-example-webserver 3.06 MB / 3.06 MB [========================================================================================] 100.00 % 89.10 KB/s Done Starting download of icon for package 40.35 KB / 40.35 KB [======================================================================================] 100.00 % 74.90 KB/s Done Name Date Version Developer ubuntu-core 2015-09-25 2 ubuntu go-example-webserver 2015-11-08 1.0.9 canonical hello-world 2015-11-08 1.0.18 canonical webdm 2015-11-08 0.9.4 sideload pi2 2015-09-25 0.16 canonical
http://サーバーIP:8081 にアクセスすればみれる。
READMEにビルド方法書いてあるけど、goインストールしないとダメ。
他所でビルドして、このサーバーに持ってきて動くかす方が楽そう。
RaspberryPiの中に入ってゴリゴリ書くのは違うと思う。
パッケージ削除の練習
(RaspberryPi2)ubuntu@localhost:~$ sudo snappy remove go-example-webserver Removing go-example-webserver Waiting for go-example-webserver_webserver_1.0.9.service to stop.