2016-11-26

apachectl fullstatus の Request 列の改行を制御する

[root@websv ~] # which apachectl
/usr/sbin/apachectl

[root@websv ~] # less /usr/sbin/apachectl
...
# |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
# --------------------                              --------------------
#
# the path to your httpd binary, including options if necessary
HTTPD='/usr/sbin/httpd'
#
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line.  Designed for lynx, however other
# programs may work.
if [ -x "/usr/bin/links" ]; then
  LYNX="/usr/bin/links -dump"
else
  LYNX=none
fi
#
# the URL to your server's mod_status status page.  If you do not
# have one, then status and fullstatus will not work.
STATUSURL="http://websv:80/server-status"
...

[root@websv ~] # man links
...
-dump-width (alias for document.dump.width)
Width of the dump output.

...

[root@websv ~] # /usr/bin/links -dump http://websv:80/server-status/
...
Srv  PID   Acc  M CPU  SS  Req Conn Child Slot  Client     VHost        Request
GET
0-0 19019 0/7/7 _ 0.00 58  0   0.0  0.03  0.03 127.0.0.1 websv01:80 /server-status
HTTP/1.1
GET
1-0 19020 0/7/7 _ 0.00 18  0   0.0  0.03  0.03 127.0.0.1 websv01:80 /server-status/
HTTP/1.1
GET
2-0 19021 0/6/6 W 0.00 0   0   0.0  0.03  0.03 127.0.0.1 websv01:80 /server-status/
HTTP/1.1
GET
3-0 19022 0/6/6 _ 0.00 178 0   0.0  0.03  0.03 127.0.0.1 websv01:80 /server-status
HTTP/1.1
GET
4-0 19023 0/6/6 _ 0.00 118 0   0.0  0.03  0.03 127.0.0.1 websv01:80 /server-status
HTTP/1.1

...

[root@websv ~] # /usr/bin/links -dump http://websv:80/server-status/ -dump-width 192
...
Srv  PID   Acc  M CPU  SS  Req Conn Child Slot  Client     VHost              Request
0-0 19019 0/7/7 _ 0.00 39  0   0.0  0.03  0.03 127.0.0.1 websv01:80 GET /server-status HTTP/1.1
1-0 19020 0/6/6 W 0.00 0   0   0.0  0.03  0.03 127.0.0.1 websv01:80 GET /server-status/ HTTP/1.1
2-0 19021 0/6/6 _ 0.00 170 0   0.0  0.03  0.03 127.0.0.1 websv01:80 GET /server-status HTTP/1.1
3-0 19022 0/6/6 _ 0.00 159 0   0.0  0.03  0.03 127.0.0.1 websv01:80 GET /server-status HTTP/1.1
4-0 19023 0/6/6 _ 0.00 99  0   0.0  0.03  0.03 127.0.0.1 websv01:80 GET /server-status HTTP/1.1
...

2016-11-22

MySQL サーバーシステム変数 のデフォルトを確認する方法

サーバーのコンパイル時のデフォルトおよび読み取られるオプションファイルに基づいて、サーバーが使用する値を表示するには、次のコマンドを使用します。
mysqld --verbose --help


すべてのオプションファイルの設定を無視し、サーバーのコンパイル時のデフォルトに基づいてサーバーが使用する値を表示するには、次のコマンドを使用します。
mysqld --no-defaults --verbose --help


実行中のサーバーによって使用される現在の値を表示するには、SHOW VARIABLES ステートメントを使用します。


引用:MySQL 5.6 リファレンスマニュアル 5.1.4 サーバーシステム変数
https://dev.mysql.com/doc/refman/5.6/ja/server-system-variables.html

Chatの「メッセージは投稿者によって削除されました」を非表示にする方法

Chrome拡張機能を自作してやってみよう! ♪できるかな できるかな ・・・ 無理ぽ (´・ω・`) iframeの中に、実際のメッセージのやり取りが表示されるので、 $(function(){ $('iframe[name^="spa...