2020-03-01ãã1ã¶æéã®è¨äºä¸è¦§
Mapã®Keyãåç §ããã¨ã2ã¤ãã®è¿ãå¤ã§ãã®Keyãåå¨ãã¦ãããã©ããã®boolå¤ãè¿ãã ãã®å¤ãã¿ãã°åå¨æç¡ã確èªãããã¨ãã§ãã if v, ok := m["a"]; ok { fmt.Println(v) }
iptablesã§ã®ã³ãã¯ã·ã§ã³ç¢ºç«è¦æ±ãç ´æ£ iptablesãèµ·åããã¦ããã¦ä¸è¨ã³ãã³ããå®è¡ $ iptables -A INPUT -p tcp -d 127.0.0.1 --dport 12345 -j DROP # firewalldã使ããªã以ä¸ã®ãããªæã(æªæ¤è¨¼) $ firewall-cmd --direct --add-rule ipv4 filter â¦
ãã§ã«å®è¡ä¸ã®ã³ã³ãããããã¨ãã¦ãã®ã³ã³ããã«ãããã°ã³ãã³ããä¸ã¤ãå ¥ã£ã¦ãªãã±ã¼ã¹ãæ³å®ã ãã®å ´åã¯ã³ã³ããã«å ¥ã£ã¦ããã±ã¼ã¸ããã¼ã¸ã£ã使ç¨ãã¦ãããã°ãã¼ã«ãå ¥ããæ¹æ³ãããããããããããªããªãç¶æ³ã ã£ãã¨ããã ãããªæã«ä½¿â¦
ã¯ã©ã¤ã¢ã³ã <-> ã®http/2ã«ããæ¹æ³ã¯åé¡ãªãããã ãããä»åº¦ã¯http/2ãapache <-> ããã¯ã¨ã³ããµã¼ãã§ä½¿ç¨ããã«ã¯ã®ã話ã çµè«ã¨ãã¦ã¯mod_proxy_http2ã使ãã ãã§åé¡ãªãã ãããªæãã§ä»ã¾ã§ä½¿ã£ã¦ãmod_proxyã®è¨å®ã§proxyããéã®ãããã³â¦
hatebu.me æã¤ã¶ãã«ãã£ã¦ã¿ãã ã¨ã³ã¸ãã¢æ´ -> 丸3å¹´(ã¤ã³ãã©ã¨ã³ã¸ãã¢ã£ã¦è©æ¸ãã ã£ããã¨ã¯ãªãã¯ã) å®åãããªã趣å³ã ã触ã£ãã¯åºæ¬Ã DBè¨è¨ (0/4) [Ã] è¦ä»¶ããDBå®ç¾©ãä½æã§ãã [Ã] ERå³ãä½æã§ãã [Ã] 第ï¼æ£è¦åã¾ã§æ£è¦åã§ãã [Ã] â¦
netstat -neã¨ãã§è¦ããsocket-typeã®DGRAMã¨ãSTREAMã£ã¦ãªãã ããã£ã¦è©± Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 12689 /run/systemd/shutdownd unix 3 [ ] STREAM CONNECTED 33511 STREAM (SOCK_STREAM) TCP ã使ç¨ããããã»ã¹ã®â¦
nfsãªãdbã¸æ¥ç¶ããããã»ã¹ããã£ãã¨ãã¦æ¥ç¶å ãåå ã§ããã»ã¹ãåºãããã¨ã¯å¤ã ããã åºãã£ãããã»ã¹ãã©ãã«å¯¾ããIOã§ãã®ç¶æ ã«ãªã£ãããç¹å®ããæ¹æ³ # åºãã£ãããã»ã¹ã®PIDãåå¾ $ ps aux | grep "ããã»ã¹å" # pidããéãã¦ããã½ã±ãâ¦
ã¿ã¤ãã«ã®éããL4ãã¼ããã©ã³ãµ ãLVSã§å®è£ ããã¨ãã«å¿ è¦ãªè¨å® net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2 ä»®æ³IPã¢ãã¬ã¹ã¯Loã«å²ãå½ã¦ãã ãããããªãµã¤ããè¦ã¦ãã¦æãã®ã ãallã«è¨å®ããå¿ è¦ã¯ããã®ã ãããï¼ nâ¦
yumã§ã¯ç¡çã£ã½ãã®ã§ã½ã¼ã¹ãããã«ãã¤ã³ã¹ãã¼ã«ã ãªãã·ã§ã³ã¯ã°ã°ã£ã¦ãã¨ç¡éã«åºã¦ããã®ã§ã²ã¨ã¾ãéã¶ã ããªã®ã§ä½¿ããããªãã®ãã²ããã追å ã OpenSSL 1.1.1以ä¸ãå¿ è¦ãªã®ã§äºåã«ä¸ãããdockerã§ããããã«imageãç¨æãã¦ãè¯ããã æé â¦
container_ofãã¯ãã¯ãLinux Kernelã§ç¨ãããããæ§é ä½ã¡ã³ããã¤ã³ã¿ãããããã®ã¡ã³ããå«ãæ§é ä½ã®å é ãã¤ã³ã¿ããå¾ããããã¯ãã linuxã«ã¼ãã«ã§é »åºã®é£çµãªã¹ãã®å®è£ ã¯ãããªæãã struct list_head { struct list_head *next, *prev; }; â¦
kustomize.io èæ¯/æ¦è¦ Configmapã¯é常æ¸ãæããã ãã ã¨ãã®å 容ã¯æ¢åã®podã«ã¯åæ ãããªãããã®ä»çµã¿èªä½ã¯å½¹ç«ã¤ã±ã¼ã¹ããããããã«ã¦ã§ã¢ã®ä¿®æ£æã«å³åº§ã«åæ ããããã±ã¼ã¹ã§äººã®æãä»ãã¦kubectl ã® rollout restartãæã¤å¿ è¦ãåºã¦ãã¦ãâ¦
golangã§cliãã¼ã«ãæ¸ãéã«sigintãããã°ã©ã ã§ãã³ããªã³ã°ããéã®æ¹æ³ os/signalã使ç¨ãããã¨ã§å®¹æã«ã·ã°ãã«ã®ãã³ããªã³ã°ãè¡ããã¨ãã§ããã¨ã®ãã¨ã qiita.com ä¸è¨ã®è¨äºå ã§ã¯SIGINTã«ã¤ãã¦ã®ãã³ããªã³ã°æ¹æ³ãè¨è¼ããã¦ããã ä¸è¨ã®ãâ¦
playbookãä¸è¨ã®ããã«ãªã£ã¦ãã¦ç¹å®ã®inventoryã«ããã°ã«ã¼ãã®ã¿å®è¡ãããã±ã¼ã¹ãããã¨ãã - name: example hosts: all gather_facts: yes : hoststã¯ãããªæã [group1] hoge001 hoge002 [group2] fuga001 fuga002 ãã®å ´åã¯ansible-playbooã«lâ¦
LVSã®ç°å¢æ§ç¯æé ãè¦ã¦ãã¨å½ããåã®ããã«VIPãã«ã¼ãããã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¸å²ãå½ã¦ã¦ããã®ãè¦ã¦ä¸æè°ã«æã£ãã®ã§èª¿ã¹ãã ã«ã¼ãããã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ã¯ ã«ã¼ãããã¯ã¢ãã¬ã¹ã¨ã¯ããã®æ©å¨èªèº«ã表ã IP ã¢ãã¬ã¹ã§ããã®ã«å¯¾ãã¦ãã«ã¼â¦
client -> host1(è¸ã¿å°ãµã¼ã) -> host2(ç®çã®ãµã¼ã) ã¨ãã°ã¤ã³ãããã±ã¼ã¹ã§sshã³ãã³ããä¸åã§æ¸ã¾ããæ¹æ³ ~/.ssh/configã¸ä¸è¨ã®ããã«è¨è¼ãããã¨ã§è¡ããã¨ãã§ããã Host host1 HostName host1.hoge.fuga User user IdentityFile ~/.ssh/id_râ¦
x.y.zã®ã³ãã³ãã®ãã¼ã¸ã§ã³æ¯è¼ãè¡ãtips [root@choco01 ~]# gcc -dumpversion 4.8.5 ãããªæãã®ãã¼ã¸ã§ã³è¡¨ç¤ºã§ãã¼ã¸ã§ã³æ¬¡ç¬¬ã§åä½ãåããå¦çãæ¸ãããã¨ããããã¨ãã¦ãã®ã¾ã¾æ°å¤æ¯è¼ã¯ã§ããªã ã®ã§ãprintã使ã£ã¦ãã©ã¼ããããã¦ãã¾ã [â¦
ã«ã¼ãã«ã¹ã¬ããçæ kernel_thread() ã«ã¼ãã«ã¹ã¬ãããçæããå ¥å£ãå¼æ°ã«ã¹ã¬ããã®ç¨ã®å¤ã渡ãã¦ããï¼ãªã®ã§ããã»ã¹ã¨ããããã¹ã¬ãããçæããã kernel_thread()ã§ä½ãã¦ãã do_fork() task_strcutã®ã³ãã¼ãä½ãå®è¡å¯è½ããã»ã¹ã®ãªã¹ãã«â¦
httpãµã¼ãã¯ã³ã©ã¤ãã¼ httpãµã¼ããç°¡æçã«çæããæ¹æ³ã¯ãããããã£ã¦pythonãªãperlãªãã§phpãªãã§ã¯ã³ã©ã¤ãã¼ã§æ¸ããããã¾ãã ä»åã¯ãããã®LLè¨èªã使ããã«ã³ãã³ãã©ã¤ã³ããhttpãµã¼ããèµ·åãã¦ã¿ã å¿ è¦ããã±ã¼ã¸ã¯netcatã³ãã³ãã使â¦
ãã¾ã¼ã«ä½¿ãç³»ã®ãªãã·ã§ã³ã·ãªã¼ãº ç°å¢ Docker version 19.03.5, build 633a0ea build --secret Dockerfileã®ä¸ã§ãã©ã¤ãã¼ããªãã¸ããªãªã©ã«sshéµãå¿ è¦ãªã±ã¼ã¹ã§ä½¿ç¨å¯è½ã åç´ã«ADD/COPYã§ã解決ãããã¨ãã§ãããDockerfileã®æ¸ãæ¹æ¬¡ç¬¬ã§ã¯(ä»®â¦
ã¡ã¼ã«éä¿¡ LPICåå¾æã«ããã£ã¨æ§ç¯ããã¡ã¼ã«ãµã¼ãã éä¿¡ãã¹ãã¯ãã¼ã«ã«ã§ãããã£ã¦ãªãç¹ã«å°ããã¨ããªãã£ããã©å¤é¨ã«éä¿¡ããå ´åã¯ã©ããããã ããã£ã¦æã£ã¦è²ã 調ã¹ãã ç°å¢ éä¿¡ OS : CentOS 7.7 ã¡ã¼ã«ãµã¼ã : Postfix æé â ä½ã¯ã¨ãâ¦
ã¢ãããã¼ã return webdriver.Chrome(executable_path=driver_path, chrome_options=options) Initialization of the driver failed. Message: session not created: This version of ChromeDriver only supports Chrome version 75 ä¹ ã ã«seleniumã§éã¼â¦
slackéç¥ curlã§ã¨ã³ããã¤ã³ãç®æãã¦ãã£ã¦ããã©ä¾¿å©ãªActionãå ¬éããã¦ããã¨ã«æ°ã¥ããã®ã§è©¦ãã GitHub Marketplaceä¸ã«slack-actionãåå¨ããã github.com jobs: notify: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: â¦
Linuxã«ã¼ãã«ã¹ã¬ãã Linuxã§ã®ã«ã¼ãã«ã¹ã¬ããã®ãä»äºã¯ä»¥ä¸ã®ãããªæã keventdï¼ã¯ã¼ã¯ãã¥ï¼ kswapdï¼ã¡ã¢ãªã¼ååï¼ ksoftoirqdï¼ã½ããå²ã込㿠ã«ã¼ãã«ã¹ã¬ããã¨ããååã¯ã¤ãã¦ãããLinuxããã¿ãã«ã¼ãã«ã¹ã¬ããã®ä¸ã¤ä¸ã¤ã¯ã¹ã±ã¼ã¸ã¥ã¼â¦