Full disclosure: any link to Digital Ocean has a referral code. If you signup to Digital Ocean and purchase anything, I get a little credit for you doing so. If you have to manage more than one server with common software packages and configuration, you're going to want a server configuration management tool. Originally, I wrote shell scripts to handle this. However, shell scripts can have problem
機能やサービスごと、もしくはサイトごとについつい、いくつものVPSを借りてしまってはいませんか? 僕がそうなんです。環境はお互いに独立しておいたほうが後々良いという考えのもと、さくらのVPSをサービスごとに借りてしまい、いつのまにか請求額が高くなっているというのは、よくあることです。ありますよね? 会社でもつい借りまくって毎月の請求が7万とかになってて悲しんでいます。 今回、個人的に借りていた3台のVPSを1台に集約したいと思いました。 初代の「さくらのVPS512」というプランが3つで2940円掛かっていましたが、「さくらのVPS 石狩リージョン 2G v3」の初期費用無料、月額1480円に節約したいと思います。 最近できたConoHaなど、別にさくらのVPSに限らず他社のKVMなVPSでもいいと思います。 CloudCore CV01はちょっと割高に感じるので、さくらかConoHa、そ
概要 人前に何かを出したり、やったりして恥をかく 恥をかくと、より記憶が鮮明になる ただし、恥をかくと、「それをやりたくない」という気持ちも働くので、運用が重要 欠点をなんとか「長所」にしていく運用を見つけていく はじめに 今日は日曜日に、自分のサービスをいじってもらう、みたいなことをやったのですが、そのときにすごいやらかしてしまったことがありました。 何をやらかしたかというと、基本的に自分のサービスは「さくらのVPS+Ubuntu」という構成なんですね。で、それを他人にいじってもらう場合、ユーザーアカウントを発行するんですが、そのとき、Linuxのシステムは「権限」と言う考え方があって、どういうことかというと、「そのシステムの根幹部分に触れるかどうか」というのが設定できるわけです。「システムの根幹部分」というのは、Linuxユーザー全体に影響を及ぼすようなこと、という言い方をすればいいの
最近、VPSの電話認証で声優が答えてくれるとか宣伝するあざとい事業者があるようだが、さくらのクラウドの電話認証は、キュゥべえやかがみ、真宵で有名な加藤英美里さんがやっていて、そもそも元からあざといのです。さあ、さくらのクラウド、使わなくてもいいので、電話認証だけでもしましょう!
Digital OceanっていうVPSがあって、最安プランだと月額5ドルで使える。 それだけだと日本国内にあるさくらのVPSとかのほうが高速だしメリット薄い感じだけど、Digital OceanにはAPIがあってvagrantと連携できるらしいので試した。 環境と事前準備 vagrant-digitaloceanを使う。 $ vagrant --version Vagrant version 1.2.2 $ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] $ vagrant plugin install vagrant-digitalocean Installing the 'vagrant-digitalocean' plugin. This can take a few minutes... Inst
最低が月500円程度と、さくらのVPSに比べても安いです。メモリが512MBと少な めですが、その一方HDDがSSDとなっており、高速です。 インストールできるイメージは ubuntu12.04, 12.10, 13.04 CentOS6.4, 5.8 Debian7.0, 6.0 Arch2013.05 Fedora17 のそれぞれx32とx64が用意されています。 その他、LAMP構成、Ruby on Rails構成、Wordpress構成が設定済みのイメージ も用意されているため、簡単にアプリを立ち上げることもできます。 性能評価¶ 現在、月5ドルのプランを一台借りてみていますので、軽く評価してみます。 CPU¶ /proc/cpuinfoを覗いてみます。 % cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu f
VPSでDropboxを使うなら、LAN Syncを止めよう! 「Dropboxからの17500/UDPがウゼー」と言っているだけでは、片手落ちだと思ったので、LAN Syncを止める方法も、エントリーしておく。 CUI版のDropboxのインストールは、 さくらVPSでDropbox - webネタ さくら VPS でも Dropbox を利用する - 脳無しの呟き《土鍋と麦酒と炬燵猫》 あたりを参考にすれば、問題なく出来るはず。(このエントリーの本題じゃないのでリンクだけ紹介。) LAN Syncが有効だと... 同じネットワーク上の別サーバでtcpdumpを動かしてport17500へのパケットを観察しつつ、インストールしたDropboxを起動してみると・・・。 nexus01:~# tcpdump -i any -s 1600 port 17500 tcpdump: verbose
あんまりにもひどいなぁ、と思うので、エントリーとして書いておく。 さくらのVPSでサーバ立てたのは、既に書いたとおりなのだけど、iptablesでパケットフィルタリングかけて、fwanalogでその状況をチェックしていると、大量のUDPパケットをブロックしているのがわかったので、ちょっと調べてみたらところ、 i wondering about the broadcast on port 17500 (udp) in our network. Why broadcasting on udp 17500? « Dropbox Forums どうやら、Dropboxが同一LAN内にいるDorpboxとのsyncをするために、ブロードキャストに向けてUDPパケットをバラ撒いて、その存在を見つけようとしているらしい・・・。 「適当なサーバにDorpbox入れておけば、外出先でも自宅でも会社でも、ネッ
はじめに ボンソワール(こんばんわ)、Python界の情弱です。さて、電力供給が懸念される昨今ですが、僕も自鯖を止め続けるわけにもいかないので、電気代と用途を考えてさくらVPSを契約してそこに移行することにしました。 大抵のスクリプトやドキュメントはGithubやbitbucketに置いてるので楽勝です。で、自鯖とかでX11ある環境だったらDropboxもパッケージ突っ込むだけでいいので楽勝です。 しかしさくらVPS。しかもしょぼいメモリ512MBのプラン。X11は入れたくないなー。というわけでフォーラムにX11使わない方法が載ってたので試します。 参考 The Dropbox Blog ログ Dropbox daemonをダウンロードして実行 Dropbox用daemonをダウンロードしてきて、できたディレクトリの中のdropboxdを実行するだけです。これを実行するとマシンとDropb
はじめに こんにちは、Python界のすしざんまいです。あぶりとろうめえ。さてSphinxで書いたドキュメントをbitbucketやGitHubなんかで管理している今日この頃ですが、ちょっと自前でGitサーバ立てたくなったので、ちょうどさくらVPSも借りてることだし立ててみました。 今回はgitosis使って環境を作ります。 ログ まずはgitosisの初期設定をするところまで。 (remote)% sudo apt-get install gitosis (remote)% sudo adduser --system --shell /bin/sh --group --disabled-password --home /home/git git (remote)% sudo -H -u git gitosis-init < .ssh/id_rsa.pub Initialized empt
エンジニアの加藤です。 さくらVPSにログインして、下記のコマンドを実行するだけです。簡単! git clone https://github.com/diverta/sakura-vps_chef-solo.git /usr/local/chef && sh /usr/local/chef/bin/run wordpress 今回は、RCMSのサーバインストールを簡素化したいということで、Chefを勉強していたのですが、簡単にできそうだったのと、CMSとしての競合?でもあるWordPressのインストールを簡素化してみました。WordPressいいなー、、勉強になった。 上記のコマンドにもある https://github.com/diverta/sakura-vps_chef-solo も参考にしてみてください。 という訳で、下記に手順を記載します。所要時間は30秒程度。 1、
自作Webアプリケーションのデプロイ先として Rackhub というのが新たな定番になると思っているので、このたび Kyoto.pm *1 で布教してきました。スライド: http://speakerdeck.com/u/cside_/p/vpsdotcloudrackhubRackhub: http://rackhub.net/Rackhubとは一言でいうと「環境構築済みのVPS」です。その何が新しいのか、何が嬉しいのか、など詳しいことは資料の方へ盛り込んだので、ぜひお読みいただければと思います。 ここからは参加しての個人的な感想になります。皆それぞれに問題意識を持っていて、それを解決するためにがっつり一人の時間を取るようにしているのだなぁと改めて感じました。僕は週5フルタイムでバイトしていたときは業務終了後や週末はぶっちゃけ結構だらけてしまっていたけど、今日紹介されてたライブラリやサー
はじめに ここ数日でブログに少し手を入れたので、現時点の備忘録です。内容的には半年前に四苦八苦した部分がほとんどですが、超オーソドックス設定なので、まとめておいて損はないでしょう。 なお、うちでは1日5万PV以上が出なくてテストできないだけで、たぶんもう少しは捌けます。 事の起こりは一年前。ブログを一新する際に日和ってWordPressを選択したのですが、計算してみるとピークに3PV/秒越えると発狂する計算に。あれ? まがりなりにもVPSをほぼ丸々割り当ててるので、個人レベルのブログなら鼻歌交じりに処理できるとか思ってたんですが、PHPのメモリの喰い方とApacheのデフォルト設定のアホさを嘗めていました。 その後、いろいろとありながらも安定運用には到達したので、何かあった時に再現出来るように書き残しておきます。 環境:さくらのVPS 1Gプラン Debian squeeze + Apac
仮想サーバひとつの管理権限をまるごともらえるさくらVPSが便利そうだったので契約してみた.これならレンタルサーバでは動かせないような高負荷のサービスも運用できそうだ. デフォルトのOSはCentOS 5.5 x86_64だったけど,カスタムOSとしてUbuntu 10.04 LTS amd64が利用可能だったのでそちらに切り替えて運用している. 備忘録として,Ubuntuのインストール手順とセキュリティ設定などについてまとめておく. 構成や設定について サーバ版Ubuntu 10.04を使う sshサーバのみ立ち上がった状態にする sshサーバのポート番号を変更する (例では22から12345に変更している) sshサーバは公開鍵認証のみ許可する ufwを使ってファイヤーウォールを設定し,sshのポートのみ開く ロケールをja_JP.UTF-8にする デフォルトエディタを変更する Ubun
さくらのVPS(v3) 2GB プランへの環境構築メモ 6。今回は独自ドメインの取得と設定について書く。 ドメイン管理サービスの選択 独自ドメインの取得にあたり管理サービスを選ぶ必要がある。今回はさくらのインターネット、お名前.com、ムームードメインを検討してみた。取得したいドメインは akabeko.me なので .me を取り扱っていないさくらのインターネットはパス。できれば VPS とドメイン管理の事業者を統一したかったので残念。 ドメイン取得は「さくらのドメイン取得」 次にお名前.com とムームーだが 2012/4 時点の .me ドメインの価格は 業者 サービス となっている。お名前.com の方が安いのはキャンペーンによるもの。ここはいつでもキャンペーン中な気がするけど安いにこしたことはない。 ドメイン料金一覧 | ドメイン取得なら お名前.com ムームードメイン - 価
さくらのVPS+Jenkins+github+rails3の続編。 ゴールは、githubにpushすると、さくらのVPSで動いているJenkinsがgithubから最新ソースひっぱってRobolectricのテストかけた上に、apkを作るところまで。 プロジェクトの作成 mavenプロジェクトにしてみた。 ユーザーの作成 以前作ったやつで兼用。 SSH key コレも兼用しようと思ったらダメだった。1リポジトリにつき1keyだそうで。 https://help.github.com/articles/error-key-already-in-use Once a key has been attached to one repo as a deploy key, it cannot be used on another repo. If you're running into this
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く