sage: ab [options] [http[s]://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-t timelimit Seconds to max. to spend on benchmarking
This implies -n 50000
-s timeout Seconds to max. wait for each response
Default is 30 seconds
-b windowsize Size of TCP send/receive buffer, in bytes
-B address Address to bind to when making outgoing connections
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. Remember also to set -T
-T content-type Content-type header to use for POST/PUT data, eg.
'application/x-www-form-urlencoded'
Default is 'text/plain'
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of GET
-x attributes String to insert as table attributes
-y attributes String to insert as tr attributes
-z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache=1234'. (repeatable)
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
-X proxy:port Proxyserver and port number to use
-V Print version number and exit
-k Use HTTP KeepAlive feature
-d Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-q Do not show progress when doing more than 150 requests
-l Accept variable document length (use this for dynamic pages)
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-r Don't exit on socket receive errors.
-h Display usage information (this message)
-Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
-f protocol Specify SSL/TLS protocol
(SSL3, TLS1, TLS1.1, TLS1.2 or ALL)
-n :总共的请求执行数,缺省是1;
-c: 并发数,缺省是1;
-t:测试所进行的总时间,秒为单位,缺省50000s
-p:POST时的数据文件
-w: 以HTML表的格式输出结果
Settings->Appearance中 Theme 设置 Windows 勾选Override default fonts by (not recommended),设置字体为宋体
2.显示行号
Settings->Editor->Appearance标签项,勾选Show line numbers
3.光标不随意定位
Settings->Editor中去掉Allow placement of caret after end of line。
4.启动的时候不打开工程文件
Settings->General去掉Reopen last project on startup.
5.无法起动Tomcat( IntelliJ IDEA)
请使用ZIP版的Tomcat
6.快捷键问题
可以使用其他软件的快捷键, Settings->Keymap
7.快捷键冲突(自己修改)
默认代码提示和补全快捷键跟输入法冲突,如何解决:Settings->Keymap
在上面面的图中,点击COPY ,自己新建一个方案,如 T1
然后开始设置快捷键,修改时,右击会弹出菜单,如下图,改成你想要的快捷键
8.用*标识编辑过的文件
Editor –> Editor Tabs 选中Mark modifyied tabs with asterisk
9.编码设置:编辑器中中文乱码问题
这个是项目字符编码设置错误 FILE ->Settings-> 有3处设置根据自己需要设置 IDE Encondings:IDE编码 ,选择 IDE Encoding为GBK。这边要自己去调整了 Project Encoding:项目编码 Default encoding for properties files:默认文件编码
10.编辑器中字体和大小
FILE -> Settings> Editor->Colors & Fonts -> Font -> 右侧 Size:字体大小 Line spacing:行间距 下框中是字体,左侧->可选择字体,右侧->实际应用字体
11.显示文件夹或文件过滤
File->Setting->File Types->Ignore file and folders 里面填写你要的过滤不显示的 注意大小写哦
12.当前编辑文件定位
方法1) 在编辑的所选文件按ALT+F1, 然后选择PROJECT VIEW
方法2) 左侧 项目列表框 顶部的 定位图标
13.优化文件保存
File->Settings->General-> Synchronize file on frame activation:个人需要是否取消同步文件 Save files on framedeactivation:取消 Save files automatically:选中,设置自动保存,设置 30秒自动保存时间,这样IDEA依然可以自动保持文件,所以在每次切换时,你需要按下Ctrl+S保存文件