2021-03-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¦è¦ ä»æ´ãªããApache Solrã¸å ¥éãã¦ã¿ãã®ã§ãã®è¾ºã®æ å ±ã®åãã¾ã¨ãè¨äºã ç®æ¬¡ æ¦è¦ ç®æ¬¡ Apache Solrã¨ã¯ 触ã£ã¦ã¿ã Dockerã使ã£ã¦ç°å¢æ§ç¯ Dockerfile docker-compose.yml ã³ã¢ãçæãã ãµã³ãã«ãã¼ã¿ãæå ¥ãã æ¤ç´¢APIã使ã ãµã³ãã«ã¯ã¨ãª â¦
æ¦è¦ HTTPã®ãã£ãã·ã¥ã«ã¤ãã¦è²ã 調ã¹ã¦ã¿ãã®ã§ã¡ã¢çãªæå³ãå ¼ãã¦æ¸ããã åæ©ã¨ãã¦ã¯ä»¥ä¸ã®æ¬ãèªãä¸ã§å ã«äºåç¥èãå ¥ãã¦ããããã£ããªã¨ããã®ãããã¾ãããã£ãã·ã¥ã ãã§400ãã¼ã¸è¶ ããã¨ã¦ã楽ãã¿ã§ãã gihyo.jp ç®æ¬¡ æ¦è¦ ç®æ¬¡ ããâ¦
æ¦è¦ IOãã¦ã³ãã«ã¤ãã¦èããæ©ä¼ããã£ãã®ã§ãã®è¾ºã®è©±ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ããã¡ãªã¿ã«ããããã³ã°IOããåºã¦ãã¾ããã以ä¸ã®æ¬ã大ä½ã®åèã«ãªã£ã¦ã¾ãã https://www.amazon.co.jp/exec/obidos/ASIN/4774143073/hatena-blog-22/www.amazon.co.jp å¿â¦
# ãã£ã¬ã¯ããªé層ã®æ·±ãæå® --depth NUM Search up to NUM directories deep (Default: 25) # (ããããã)ãã¡ã¤ã«åã®ã¿ãåºå -l --files-with-matches Only print filenames that contain matches (dont print the matching lines) # ãããããªãã£â¦
$ echo "<aaa>b<ccc> <ddd>e<ccc>" ã¨ããæãä¼ã£ãæã«bã¨ããã®ãåãåºãããã±ã¼ã¹ã§ä»¥ä¸ã®ããã«sedã使ããã¨ããã¨b以å¤ã®ä¸è¦ãªé¨åã¾ã§åãã¦ãã¾ãã $ echo "<aaa>b<ccc> <ddd>e<ccc>" | sed -r 's/<aaa>(.*)<ccc>/\1/' b<ccc> <ddd>e ããã¯sedãæçä¸è´ã§ã¯ãªãæé·ä¸è´ãããã©ã«ãã§æ©è½ããããã§ããã¦</ddd></ccc></ccc></aaa></ccc></ddd></ccc></aaa></ccc></ddd></ccc></aaa>â¦
linuxjm.osdn.jp O_LARGEFILEã¨ãããã©ã°ãè¦ã¤ãæ°ã«ãªã£ãã®ã§ã¡ã¢ã O_LARGEFILE (LFS) off_t ã§ã¯ãµã¤ãºã表ããªã (ã ã ã off64_t ã§ã¯ãµã¤ãºã表ãã)ãã¡ ã¤ã«ããªã¼ãã³å¯è½ã«ããããã®å®ç¾©ãæå¹ã«ããããã«ã¯ã(ã©ã®ãããã¼ãã¡ã¤ ã«ãã¤ã³ã¯â¦
httpd.apache.org ãã®è¾ºãåèã«å ¥ãã¦ãããCentOS7ãªãä½ãããã«ãã«ããæåãããã¢ã¸ã¥ã¼ã«ãåé¡ãªãåããã <VirtualHost *:443> SSLEngine on <IfModule http2_module> ProtocolsHonorOrder On Protocols h2 http/1.1 </IfModule> DocumentRoot "/var/https/example.com/htdocs/" â¦ï¼çç¥ï¼â¦ </VirtualHost>
sshã®ãªã¢ã¼ããã©ã¯ã¼ãã使ã£ã¦ãã¼ã«ã«ã§èµ·åãããµã¼ãã¹ãå¤é¨ãããã©ã¼ã¯ã¼ããã # 以ä¸ãä¿®æ£ $ vi /etc/ssh/sshd_config GatewayPorts yes # åèµ·å $ systemctl restart sshd 以ä¸ã®ããã«sshãèµ·åãããã¨ã§192.168.1.1:8433ã¸ã®ã¢ã¯ã»ã¹ãå ¨ã¦â¦
æ¦è¦ http/2ãåãç°å¢ã§ããã¯ã¨ã³ããConnectionãããã¼ããã®åãæ±ããã©ããªæããªã®ãæ°ã«ãªã£ã¦èª¿ã¹ããRFCã¨ãã¿ã¦ããã¡ãã¨å®ãããã¦ãã¦ç¡è¦ãããªãä¸æ£ãªã¯ã¨ã¹ãã«ããã¹ãã§ããã¨ããã®ã決ã¾ãã®æ¨¡æ§ã Connection ã Keep-Alive ãªã©ã®â¦
>>> a = 777 >>> len(bin(a)) - 2 10 >>> bin(a) '0b1100001001' >>> for i in range(len(bin(a)) -2): ... print(a >> i & 1)
goã§ãã«ãæã«åçã«å¤ãå ¥ãã¦ãã¤ããªãçæããããæ¹ã§ãããã«ãã®å¼æ°ã« -ldflags "-X main.version=ãã¼ã¸ã§ã³" ãã¤ãããã¨ã§å®ç¾ã§ãã¾ãã package main var version string func main() { println("version: " + version) } makeã§ãã«ãæã«åâ¦
æ¦è¦ ä»æ´ãªããApache Solrã¸å ¥éãã¦ã¿ãã®ã§ãã®è¾ºã®æ å ±ã®åãã¾ã¨ãè¨äºã ç®æ¬¡ æ¦è¦ ç®æ¬¡ Apache Solrã¨ã¯ 触ã£ã¦ã¿ã(Docker) Dockerfile docker-compose.yml ã³ã¢ãçæãã ãµã³ãã«ãã¼ã¿ãæå ¥ãã æ¤ç´¢APIã使ã ã¹ãã¼ãã®è©± configã®æ¸ãæ¹ é«â¦
ãã®è¾ºã«ããã /etc/pki/tls/certs/ca-bundle.crt curlãverboseã¢ã¼ãã§æã¤ã¨ç¢ºãã«ãã®ãã¹ãèªãã§ããããªåºåããã [root@worker001 ~]# curl -sv https://www.google.com -o /dev/null * About to connect() to www.google.com port 443 (#0) * Tryâ¦
大容éãã¡ã¤ã«ã®ãã¦ã³ãã¼ãã ã£ããnasã¸ã®å¤§é並åã¢ã¯ã»ã¹ã ã£ãããgoroutineã§æ¸ããªã使ããããªã¯ã¼ã«ã¼ãã¼ã«ããµã³ãã«ã¯string 㨠worker id ãåãåã£ã¦ãæååã®ããã·ã¥ãè¨ç®ã¨ããCPUãªã½ã¼ã¹ãé£ããã¤ã ãè²ã ã¨å¿ç¨ã§ããã¯ãã æ¸ãâ¦
ã·ã¹ãã ã³ã¼ã«ãæ¨æºã©ã¤ãã©ãªã§ãã¨ã©ã¼åå ãæãã¦ããã errno ã®å¤ã å¿ããé ã«ãªã£ã¦å¤ã®å®ç¾©ãè¦ãããªããæ¯å調ã¹ã¦ãããããªæ°ãããã®ã§ãä»åã¯Qiitaã«ã¡ã¢ãã¦ããã æç¹°ãæç¹°ã include ãã¡ã¤ã«ãã¡ CentOS7 ã®ä¸ã§ã"fgrep errno.h /uâ¦
æ¦è¦ ä»æ´ãªããApache Solrã¸å ¥éãã¦ã¿ãã®ã§ãã®è¾ºã®æ å ±ã®åãã¾ã¨ãè¨äºã ç®æ¬¡ æ¦è¦ ç®æ¬¡ Apache Solrã¨ã¯ 触ã£ã¦ã¿ã(Docker) Dockerfile docker-compose.yml ã³ã¢ãçæãã ãµã³ãã«ãã¼ã¿ãæå ¥ãã æ¤ç´¢APIã使ã ã¹ãã¼ãã®è©± configã®æ¸ãæ¹ é«â¦
cmdline ããã»ã¹ãéå§ããã³ãã³ã cwd ããã»ã¹ã®ã«ã¬ã³ãã¯ã¼ãã³ã°ãã£ã¬ã¯ããªï¼CWDï¼ã¸ã®ã·ã³ããªãã¯ãªã³ã¯ exe ããã»ã¹ã®å®è¡ãã¡ã¤ã«ã¸ã®ã·ã³ããªãã¯ãªã³ã¯ root ã«ã¼ããã£ã¬ã¯ããªã¸ã®ã·ã³ããªãã¯ãªã³ã¯ cpu åcpuã§ã®CPUã¿ã¤ã ã¨çµ±è¨æ å ± enâ¦
fluentdã§è¤æ°ã®ã·ã¹ãã ã¸ãã°ã転éãããã¨ãã®Tipsãcopyã¢ã¸ã¥ã¼ã«ã使ãã¨ãã話ã docs.fluentd.org <source> type tail path /var/log/myapp/nginx/access.log ... tag myapp.nginx.access </source> # Output <match myapp.nginx.access> type norikra norikra xxx.xxx.xxx.xxx:xxxxx ... </match> <match myapp.nginx.access> typ</match>â¦
æ¦è¦ ä»æ´ãªããApache Solrã¸å ¥éãã¦ã¿ãã®ã§ãã®è¾ºã®æ å ±ã®åãã¾ã¨ãè¨äºã ç®æ¬¡ æ¦è¦ ç®æ¬¡ Apache Solrã¨ã¯ 触ã£ã¦ã¿ã(Docker) Dockerfile docker-compose.yml ã³ã¢ãçæãã ãµã³ãã«ãã¼ã¿ãæå ¥ãã æ¤ç´¢APIã使ã ã¹ãã¼ãã®è©± configã®æ¸ãæ¹ é«â¦
100åãããã°ã°ã£ã¦ãããã¤ãå®è¡ã¦ã¼ã¶ã¨ãæå®ãããå ´åã¯ä»¥ä¸ã«ãªãã User=ã¦ã¼ã¶ Group=ã°ã«ã¼ã [Unit] Description=My Daemon [Service] ExecStart=/myhome/scripts/run.sh ExecStop=/bin/kill ${MAINPID} Restart=always Type=forking User=myuseâ¦