systemctl stop iptables.service
systemctl stop ip6tables.service
systemctl stop ebtables.service
systemctl mask iptables.service
systemctl mask ip6tables.service
systemctl mask ebtables.service
・maskしてサービスを無効にする
sudo systemctl mask httpd.service
=>ln -s '/dev/null' '/etc/systemd/system/httpd.service'
Unitファイルは/etc/systemd/system⇒/usr/lib/systemd/systemの順に参照される。優先度の高い/etc/systemd/system上に/dev/nullへのシンボリックリンクを配置することで、対象Unitへの操作を無効化している事が分かる。
・変更を有効にする
systemctl daemon-reload
・変更ログ
journalctl
該当サービスの直近のシステムログが表示されています。
rsyslogに送られるメッセージは、systemd-journaldというデーモンが監視しており、
すべてsystemd独自のログ(ジャーナル)にも保存されています。
ここで表示されるログは、ジャーナルから取り出しているため、実際のログの出力ファイルに関わらずすべてのログがここで確認できます。
上記のコマンドに-fオプションをつけると、「tail...
2014/12/19
svn 衝突
編集 (e) - マージされたファイルにエディタで変更を加えます
全差分 (df) - マージによってファイルに加えられた変更をすべて表示します
解決版 (r) - マージされたバージョンのファイルを採用します
衝突表示 (dc) - (マージされたバージョンを無視して) 衝突をすべて表示します
衝突自分 (mc) - (同上) すべての衝突に関して自分のバージョンを採用します
衝突他人 (tc) - (同上) すべての衝突に関して他人のバージョンを採用します
完全自分 (mf) - (衝突がなくても) ファイル全体で自分のバージョンを採用します
完全他人 (tf) - (同上) ファイル全体で他人のバージョンを採用します
延期 (p) - 競合に、後で解決する予定であるという印をつけます
起動 (l) - 競合を解決するために外部ツールを起動します
...
linux apache2.4 module memo
■proxyモジュール多いね
LoadModule proxy_module modules/mod_proxy.so
LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_express_module...
linux command tips
ssh sed 正規表現
sed -i "s/\r//"
sed "s/aaa/bbb/i"
==->i 大文字と小文字区別しない
grep -i
-i Aとaは区別しない
★disown nonhup
disown---->番号が分かれば、disown 番号
nonhup---->事前でやる
★vi 小文字、大文字変換---------------------
g~~===>小文字、大文字変換
★★linux exec----
シェルから
% ls
とコマンドを実行すると、シェルは以下のことを行う。
システムコール fork(2) を呼び、子プロセスを生成する。
子プロセスは ls を exec(2) する。
親プロセスであるシェルは、ls の実行が完了するのを待つ (wait する)。
一方、
% exec ls
と exec を使うと、シェルは fork(2) せず、いきなり ls コマンドを exec(2) する (シェルの内部コマンド exec(1) を実行すると、内部でシステムコール...
scala study memo
・Predef is a great place to start to understand the Scala Library
==>Predefに定義された関数は、すべてのScalaのソースにおいて自動でimportされている
printやprintlnはPredefで定義されている。JavaのようにSystem.out.printlnという長い記述をしなくても、printlnのみで標準出力ができるのは、これのお陰。
・Array===>scala.collection.mutable.ArrayLike
scala myfirstScript.scala my first script
==>args...引数のこと args.foreach(println);
追加:
var oldList=List(1,2)
val newList=3 :: oldList
==>newList 3:2:1
var theList= newList : +3
the :: method. The job of the ::...
INI-style
構造の単純なテキストファイルであり、設定ファイルの標準です。
このファイルは主にWindowsで使用するが、他のプラットフォームでも使われる。
INIファイルという名前はこのファイルの一般的な拡張子「.INI」から来ている。INIとはinitializationである。
その他に「.CFG」や「.conf」、あるいは「.TXT」も使われる。
パラメータ name=value
セクション [section]
コメント ; comment text
★ansible lineinfile
This module will search a file for a line, and ensure that it is present or absent.
This is primarily useful when you want to change a single line in a file only.
For other cases, see the copy or template modules.
オプション
・backrefs->insertbefore and insertafter will be ignored,...
jmeter NonGUIDriver Could not find the TestPlan class
結論から言うと親要素が無い不完全なJMXファイルを作成していたから
翻訳のせいかな。。
save=->保存
save Test Plan As =>テスト計画に名前を使って保存する
Save Selection As =>別名で保存
==>選択された部分だけ保存する、これは罠であ...
php windows Class 'mysqlli' not found in
php.ini==->c:/windows 下の物
phpinfoで見える:
Loaded Configuration File C:\windows\php...
windows service httpd
httpd.exe -k restart/start/stop/install/uninstall -n "serviceNa...
php study memo
Each active resource has a unique identifier. Each identifier is a numerical index into
an internal PHP lookup table that holds information about all the active resources. PHP
maintains information about each resource in this table, including the number of references
to (or uses of) the resource throughout the code. When the last reference to a
resource value goes away, the extension that created the resource is called to free any
memory, close any connection
=->
$res=database_connect();
...
$res="boo"
automatic cleanup
// is_resource()
==>Many...
a library vs a framework
・your code call libraries ,frameoworks call your code
・framework==>Don't call us, we'll call you
framework
===>
Frameworks are not the cure for all programming
problems. Putting aside today's awesome state of
development, you should always remember how
frameworks were created a few years ago. Most of them
were more or less unoptimized junk created by one guy to
help him speed up his development process, without much
care for documentation, elegance, ease of use, or even
readability of his code. Then another group of guys took
this code...
ftp 421 service not available vsftpd
yum install vsftpd
--->サーバー
yum install ftp
--->テスト用のクライアント
★vsftpd tcp_wrappers=YES
==>権限/etc/hostsに渡る
★vsftpd tcp_wrappers=YES
500 failed to open file
=>SeLinux有効になっってる。
getenforce
sudo setenforce...