sysctlで設定可能な項目について調査した内容。
項番 | 項目 | 説明 | 補足 |
---|---|---|---|
1 | StartServers | Apache起動時の子プロセス数 | Apache起動時にまずはここで設定された数の子プロセスを起動します |
2 | MinSpareServers | 待機時の最小子プロセス数 | 子プロセスがMinSpareServersより少なくなったら、この値まで子プロセスを上げます |
3 | MaxSpareServers | 待機時の最大子プロセス数 | 子プロセスがMaxSpareServersより大きくなったら、この値まで子プロセスを下げます |
4 | ServerLimit | 設定可能なサーバプロセス数の上限 | MaxClientsを256以上に設定したい場合はServerLimitも設定する必要があります。また、 MaxClientsの上に書かないと効きません |
5 | MaxClients | 最大の小プロセス数 | この数≒最大の同時接続数です |
This file contains 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
# kubectl create | |
(...) | |
Available Commands: | |
clusterrole Create a ClusterRole. | |
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole | |
configmap Create a configmap from a local file, directory or literal value | |
deployment Create a deployment with the specified name. | |
job Create a job with the specified name. | |
namespace Create a namespace with the specified name | |
poddisruptionbudget Create a pod disruption budget with the specified name. |
This file contains 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
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
This file contains 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 | |
ps_out=`ps -ef | grep $1 | grep -v 'grep' | grep -v $0` | |
result=$(echo $ps_out | grep "$1") | |
if [[ "$result" != "" ]];then | |
echo "Running" | |
else | |
echo "Not Running" | |
fi | |
``` |
This file contains 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
sudo killall GlobalProtect && \ | |
sudo chflags noschg /Applications/GlobalProtect.app/ && \ | |
sudo rm -fR /Applications/GlobalProtect.app |
This file contains 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
ubuntu のキーボードを日本語対応にしたいが、うまくいかず、、 | |
まず、 | |
desktop manager として | |
- unity | |
- awesome がある | |
ログインするときの◯で選べる | |
どうやら使ってみた感じだと unity は微妙だけれど | |
awesome は使いやすい。これなら乗り換えれる。 |
This file contains 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
# No input | |
def seconds_in_day | |
24 * 60 * 60 | |
end | |
# This is the same as below | |
SECONDS_IN_DAY = 24 * 60 * 60 |
NewerOlder