[unix:http_server]
file=/tmp/appt.sock
chmod=0777
chown=root:golang
[inet_http_server]
port=9900
[program:app]
command=/var/www/golang/src/src
autostart=true
autorestart=true
startretries=10
chown=root:golang
directory=/var/www/golang/src
environment=APP_SETTINGS="/srv/www/yourapp.com/prod.toml"
redirect_stderr=true
stdout_logfile=/var/log/supervisor/golang.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
2015年10月28日 星期三
2015年10月5日 星期一
chroom cache
http://www.howtogeek.com/197804/how-to-clear-the-google-chrome-dns-cache-on-windows/
chrome://net-internals/#dns
chrome://net-internals/#dns
2015年10月2日 星期五
golang暫存資料
//重新安裝golang
brew install go --with-cc-all
//編譯檔案於哪個OS下使用
//linux
GOOS=linux GOARCH=amd64 go build
//mac
GOOS=darwin GOARCH=amd64 go build
//
http://stackoverflow.com/questions/31586320/go-build-runtime-darwin-amd64-must-be-bootstrapped-using-make-bash
http://stackoverflow.com/questions/12168873/cross-compile-go-on-osx
http://stackoverflow.com/questions/27412601/cross-compiling-go
http://stackoverflow.com/questions/25051623/golang-compile-for-all-platforms-in-windows-7-32-bit
http://www.goinggo.net/2013/10/cross-compile-your-go-programs.html
//編譯檔案OS
https://github.com/mitchellh/gox
brew install go --with-cc-all
//編譯檔案於哪個OS下使用
//linux
GOOS=linux GOARCH=amd64 go build
//mac
GOOS=darwin GOARCH=amd64 go build
//
http://stackoverflow.com/questions/31586320/go-build-runtime-darwin-amd64-must-be-bootstrapped-using-make-bash
http://stackoverflow.com/questions/12168873/cross-compile-go-on-osx
http://stackoverflow.com/questions/27412601/cross-compiling-go
http://stackoverflow.com/questions/25051623/golang-compile-for-all-platforms-in-windows-7-32-bit
http://www.goinggo.net/2013/10/cross-compile-your-go-programs.html
//編譯檔案OS
https://github.com/mitchellh/gox
2015年9月2日 星期三
2015年8月31日 星期一
mount將伺服器檔案掛載至本機
Mac
====================================
首先安裝連結(http://osxfuse.github.io/)此網站檔案。
首先先安裝OSXFUSE 與 SSHFS,從前向後安裝。
$ mkdir local_folder
//掛載
$ sshfs NAME@HOST:/path/to/folder local_folder
//卸載
$ umount remote_disk
其他OS安裝方式
====================================
首先安裝連結(http://osxfuse.github.io/)此網站檔案。
首先先安裝OSXFUSE 與 SSHFS,從前向後安裝。
$ mkdir local_folder
//掛載
$ sshfs NAME@HOST:/path/to/folder local_folder
//卸載
$ umount remote_disk
其他OS安裝方式
2015年8月26日 星期三
server install oh-my-zsh
本文內容引用此網址:https://gist.github.com/tsabat/1498393
$ apt-get install -y zsh
$ apt-get install -y git-core
$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
$ chsh -s `which zsh`
$ sudo shutdown -r 0
$ apt-get install -y zsh
$ apt-get install -y git-core
$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
$ chsh -s `which zsh`
$ sudo shutdown -r 0
2015年8月25日 星期二
git issue
#remote: Permission to w19900227/go_study.git denied to [other user].
fatal: unable to access 'https://github.com/w19900227/go_study/': The requested URL returned error: 403
解決方式:
git remote set-url origin https://w19900227@github.com/w19900227/go_study.git
fatal: unable to access 'https://github.com/w19900227/go_study/': The requested URL returned error: 403
解決方式:
git remote set-url origin https://w19900227@github.com/w19900227/go_study.git
訂閱:
文章 (Atom)