- sudoerの追加
sudo
コマンドのインストールzsh
のインストールとデフォルトシェルの変更vim
のインストール- ドットファイルちょっといじる
gcc
インストールmake
コマンドのインストール- Pythonのビルドに必要なパッケージのインストール
git
コマンドのインストールpyenv
のインストール- Python2.6.6環境ディレクトリの作成
- sshKeyの作成
tesseract-ocr
,python-imaging
パッケージのインストールgcutil
コマンドのインストールnvm
,node
,npm
のインストール- mongoDB最新版をインストール(せつこ、これはドライバーや)
- mongoDB最新版をインストール(aptを使う)
go
のインストールrevel
のインストールtmux
のインストール- apache2のインストールとリバースプロキシ設定
Last active
December 24, 2015 09:49
-
-
Save otiai10/6779454 to your computer and use it in GitHub Desktop.
VPSをDebian7.1wheezyにしたのでサーバセットアップのログを取っておこうと思ったわけ 2
tmux
のインストール
www15224uf% sudo apt-get install tmux
[sudo] password for otiai10:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tmux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 249 kB of archives.
After this operation, 543 kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org/debian/ wheezy/main tmux amd64 1.6-2 [249 kB]
Fetched 249 kB in 0s (592 kB/s)
Selecting previously unselected package tmux.
(Reading database ... 38622 files and directories currently installed.)
Unpacking tmux (from .../archives/tmux_1.6-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up tmux (1.6-2) ...
www15224uf% which tmux
/usr/bin/tmux
apache2のインストールとリバースプロキシ設定
インストール
www15224uf% sudo apt-get install apache2
proxyモジュールを有効にする
http://otiai10.hatenablog.com/entry/2013/02/12/162501
www15224uf% sudo a2enmod proxy
www15224uf% sudo a2enmod proxy_http
www15224uf% sudo a2enmod proxy_connect
httpd.confを編集する
/etc/apache2/conf.d/httpd.conf
であった。/etc/apache2/httpd.conf
でうまくいってたのはなぜだ?
<VirtualHost *:80>
ServerName yourservicename.com
ServerAdmin [email protected]
ProxyRequests off
ProxyPass / http://applicationserver.com:7777/
<Location />
ProxyPassReverse http://applicationserver.com:7777/
ProxyPassReverseCookieDomain localhost yourservicename.com
ProxyPassReverseCookiePath / /
Order allow,deny
# Allow Allでいいのかな?
Allow from all
</Location>
</VirtualHost>
apache restart
www15224uf% sudo /etc/init.d/apache2 restart
ちょっと訂正
ユーザ関係
- suでrootに
- apt-getでsudoをinstall
- visudoも一緒に入ってくるから一般ユーザをsudoerに追加
- exitで一般ユーザに戻る
nginx
- sudo apt-get install nginx
- sudo which nginx (入ってる確認)
- exitで一般ユーザに戻る
- sudo nginx
- なんも記述無いけどデフォルトのドキュメントルートは/usr/share/nginx/index.htmlっぽい
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mgo
のインストールbzr
のインストールwww15224uf% apt-cache search bzr bzr - easy to use distributed version control system www15224uf% sudo apt-get install bzr [sudo] password for otiai10: ...中略... Setting up python-configobj (4.7.2+ds-4) ... Setting up python-bzrlib (2.6.0~bzr6526-1) ... Setting up bzr (2.6.0~bzr6526-1) ... Setting up wwwconfig-common (0.2.2) ... Setting up javascript-common (7) ... Setting up libjs-jquery (1.7.2+dfsg-1) ... Setting up python-crypto (2.6-4) ... Setting up python-gpgme (0.2-3) ... Setting up python-httplib2 (0.7.4-2) ... Setting up python-keyring (0.7.1-1+deb7u1) ... Setting up python-pkg-resources (0.6.24-1) ... Setting up python-simplejson (2.5.2-1) ... Setting up python-lazr.uri (1.0.3-1) ... Setting up python-wadllib (1.3.0-2) ... Setting up python-zope.interface (3.6.1-3) ... Setting up python-oauth (1.0.1-3) ... Setting up python-lazr.restfulclient (0.12.0-2) ... Setting up python-launchpadlib (1.9.12-2) ... Setting up python-paramiko (1.7.7.1-3.1) ... www15224uf%
なんか色々入ったな...
mgo
のインストールサンプルアプリ作るためのデータをつくる
サンプルアプリをつくる
www15224uf% mkdir -p labo/mgo www15224uf% cd labo/mgo www15224uf% vi sample.go
sample.go
おお動いた
DBにも入っとる