This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| x=$(ps -cx -o pid,command | awk '$2 == "php-fpm" { print $1 }') | |
| kill $x | |
| /usr/local/php/sbin/php-fpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > grant select,lock tables ON db.* TO 'backup'@'localhost'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [原书网址](http://www.oreilly.co.jp/books/9784873116860/#toc) | |
| 介绍 | |
| 第一章什么是Web API | |
| 1.1API在网络服务中的重要性 | |
| 基于使用的API1.1.1出现服务 | |
| 1.1.2移动应用程序和API | |
| 1.1.3 API经济 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'unicorn' | |
| gem 'unicorn-worker-killer' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat /etc/lsb-release | |
| DISTRIB_ID=Ubuntu | |
| DISTRIB_RELEASE=14.04 | |
| DISTRIB_CODENAME=trusty | |
| DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" | |
| $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| $ sudo sh -c "echo deb https://get.docker.com/ubuntu docker main\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->_CI = &get_instance(); | |
| $this->_CI->config->load('database'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $config['protocol'] = 'smtp'; | |
| $config['smtp_host'] = $this->config['smtp_host']; | |
| $config['smtp_user'] = $this->config['smtp_user']; | |
| $config['smtp_pass'] = $this->config['smtp_pass']; | |
| $config['smtp_port'] = $this->config['smtp_port']; | |
| $config['charset'] = 'utf-8'; | |
| $config['wordwrap'] = TRUE; | |
| $this->_CI->email->initialize($config); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location ~ ^/(v1)/ { | |
| return 403; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Cloning https://github.com/ruby/ruby.git... | |
| Installing ruby-2.2.0-dev... | |
| BUILD FAILED | |
| Inspect or clean up the working tree at /var/folders/0n/18bwv5x16t7gy319d5wbn9480000gn/T/ruby-build.20140718233658.48380 | |
| Results logged to /var/folders/0n/18bwv5x16t7gy319d5wbn9480000gn/T/ruby-build.20140718233658.48380.log | |
| Last 10 log lines: | |
| bigdecimal 1.2.5 |