mysql procedure Error : Result consisted of more than one row
10月 30th, 2013
select into で複数行エラー Error : Result consisted of more than one row が出たら limit 1をつければ良いそうです。
nginx get parameterをrewrite
10月 28th, 2013
location ~ ^/search { # http://sample.com/search_sp?search=iphone5s rewrite ^/search_sp(.*) /bid/$arg_search permanent; } これです。パラメータはarg_{key}で取れるという。凄い機能でした。 $argだと全部ついてくるようです。
mecab install error
10月 21st, 2013
configure: error: Your compiler is not powerful enough to compile MeCab. If it should be, see config.log for more information of why it failed. gcc-c++をいれる。 yum install gcc-c++
nginx x fastcgi 504 Gateway timeout
10月 12th, 2013
nginx と php-fpmで504が出た時。 php.ini max_execution_time = 60 php-fpm request_terminate_timeout 0 nginx fastcgi_read_timeout 60s んーデフォルト60秒らしいけど、60sも経ってるかな?一応
別のブランチから特定のファイルのみ持ってくる
10月 4th, 2013
特定のコミットをマージするには、cherry-pickやパッチですが mergeした際にconflictしてファイルとディレクトリの名前が被っていたので・・・ conf/memcachedをgit rm -rで一旦mergeのときは削除しておきました。 その後、別ブランチから特定のファイルのみcheckoutしました。 $ git checkout dev conf/memcached $ git status # On branch master # Your branch is ahead of ‘origin/master’ by 12 commits. # # Changes to be committed: # (use “git reset HEAD …” to unstage) # # new file: conf/memcached/memcached # new file: conf/memcached/memcached.backend # new file: conf/memcached/memcached.category […]