// General
Request URL: http://foo.com?x=1&y=2
Request Method: GET
// Query String Parameters
x=1&y=2
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
echo "========install extension begin===========" | |
PHP_PATH='/usr/local/php' | |
PHP_CONFIG_PATH=$PHP_PATH"/php-config" | |
PHP_INI_PATH=$PHP_PATH"/php.ini" | |
PHPIZE_PATH=$PHP_PATH"/phpize" | |
PHP_EXTENSION_PATH=$PHP_PATH"/lib/php/extensions/no-debug-non-zts-20151012" | |
echo "========install yar===========" | |
wget http://pecl.php.net/get/yar-2.0.4.tgz | |
tar zxvf yar-2.0.4.tgz |
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
#nginx的gzip模块需要zlib库,rewrite模块需要pcre库,ssl模块需要openssl库,查看程序是否已安装: | |
rpm -q pcre | |
rpm -q openssl | |
rpm -q zlib | |
rpm -q nginx | |
#!/usr/bin/env bash | |
#创建用户和组 | |
echo "======创建用户和组======" | |
/usr/sbin/groupadd -f www |
download from this url:https://golang.org/dl/
go version
ll /usr/local/go
vim ~/.bash_profile
<script>
var obj = {
"name": "hello"
}
function test(a,b,c) {
console.log(this.name)
console.log(a,b,c)
}
test.call(obj,1,2,3)
<script type="text/javascript">
const a = {a:1}
console.log(a)
console.log("===================")
const b = Object.create(null,{
a: {
writable:true,
configurable:true,
value: 2
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/bash | |
set -u | |
# First check if the OS is Linux. | |
if [[ "$(uname)" = "Linux" ]]; then | |
HOMEBREW_ON_LINUX=1 | |
fi | |
# On macOS, this script installs to /usr/local only. | |
# On Linux, it installs to /home/linuxbrew/.linuxbrew if you have sudo access |