@echo off
start /D %CD%\nginx-1.11.3 /MIN /B %CD%\nginx-1.11.3\nginx.exe
start /D %CD%\php-5.4.45-nts-Win32-VC9-x86 /MIN /B %CD%\php-5.4.45-nts-Win32-VC9-x86\php-cgi.exe -b 127.0.0.1:9054
start /D %CD%\php-5.5.37-nts-Win32-VC11-x64 /MIN /B %CD%\php-5.5.37-nts-Win32-VC11-x64\php-cgi.exe -b 127.0.0.1:9055
start /D %CD%\php-5.6.30-nts-Win32-VC11-x64 /MIN /B %CD%\php-5.6.30-nts-Win32-VC11-x64\php-cgi.exe -b 127.0.0.1:9056
start /D %CD%\php-7.0.9-nts-Win32-VC14-x64 /MIN /B %CD%\php-7.0.9-nts-Win32-VC14-x64\php-cgi.exe -b 127.0.0.1:9070
start /D %CD%\php-7.1.4-nts-Win32-VC14-x64 /MIN /B %CD%\php-7.1.4-nts-Win32-VC14-x64\php-cgi.exe -b 127.0.0.1:9071
作者归档:杨龙
vbscript静默启动bat文件
dim answer
answer=MsgBox("Start Nginx && php-cgi?",65,"Start Web Service")
if answer=vbOK then
set ws=wscript.createobject("wscript.shell")
ws.run "start-web-services.bat /start",0
end if
定义和用法
MsgBox 函数可显示一个消息框,等待用户点击某个按钮,然后返回指示被点击按钮的值。
MsgBox 函数可返回下面的值:
1 = vbOK – 确定按钮被单击。
2 = vbCancel – 取消按钮被单击。
3 = vbAbort – 终止按钮被单击。
4 = vbRetry – 重试按钮被单击。
5 = vbIgnore – 忽略按钮被单击。
6 = vbYes – 是按钮被单击。
7 = vbNo – 否按钮被单击。
Cisco 1260系统升级[tar & tftp]
先进入#模式
# archive download-sw /overwrite tftp://192.168.1.5/ap3g1-k9w7-tar.153-3.JE.tar
在框架外套一个路由器,单独处理部分请求
...前略
$_run_ci_ = false;
$_methods_ = 'GET|POST|PUT|DELETE|OPTIONS|PATCH|HEAD';
if (isset($_SERVER['REQUEST_METHOD']) &&
in_array(strtoupper($_SERVER['REQUEST_METHOD']), explode('|', $_methods_))) {
// Create Router instance
$router = new \Bramus\Router\Router();
# loader
include APPPATH . 'hooks/doufu_autoload.php';
$_doufu_loader_ = new doufu_autoload();
$_doufu_loader_->run();
// Define routes
require_once dirname(__FILE__) . "/../../app/config/router.php";
# default router
$router->match($_methods_, '.*', function () use (&$_run_ci_) {
$_run_ci_ = true;
});
// Run it!
$router->run();
} else {
$_run_ci_ = true;
}
if ($_run_ci_) {
require_once BASEPATH . 'core/CodeIgniter.php';
}
路由器项目地址:https://github.com/bramus/router
Content-Type:text/html; charset=UTF-8
php5.6以上会自动加 Content-Type:text/html; charset=UTF-8
PHP里 “/”没转义导致正则匹配出错
更新包不兼容 需卸载后重装 解决办法实测有效
开调试模式,用包名卸载
列出所有应用
adb shell pm list package
卸载包
adb uninstall com.xxx.xxx
configure: error: Cannot find OpenSSL’s
/sbin/ldconfig: libraries libpng.so and libpng12.so.0.10.0 in directory /usr/lib have same soname but different type.
iconv(): Wrong charset, conversion from `unicode’ to `utf-8′ is not allowed
413 Request Entity Too Large
http://blog.csdn.net/fdipzone/article/details/45544497
| Syntax: | client_max_body_size size; |
|---|---|
| Default: |
client_max_body_size 1m; |
| Context: | http, server, location |
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.