Help
RSS
API
Feed
Maltego
Contact
Domain > blog.lialosiu.com
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
Whois
Property
Value
NameServer
F1G1NS2.DNSPOD.NET
Created
2010-06-10 00:00:00
Changed
2015-05-22 00:00:00
Expires
2016-06-10 00:00:00
Registrar
GODADDY.COM, LLC
DNS Resolutions
Date
IP Address
2014-04-03
118.193.134.57
(
ClassC
)
2025-01-28
104.21.112.1
(
ClassC
)
Port 80
HTTP/1.1 200 OKDate: Tue, 28 Jan 2025 09:51:47 GMTContent-Type: text/html; charsetutf-8Transfer-Encoding: chunkedConnection: keep-aliveLast-Modified: Thu, 13 Apr 2023 06:53:34 GMTAccess-Control-Allow-Origin: *expires: Tue, 28 Jan 2025 10:01:47 GMTCache-Control: max-age600x-proxy-cache: MISSX-GitHub-Request-Id: F6CB:3C4C98:9C49C0:A05236:6798A8B3Age: 0Via: 1.1 varnishX-Served-By: cache-pdx12325-PDXX-Cache: MISSX-Cache-Hits: 0X-Timer: S1738057907.189573,VS0,VE84Vary: Accept-EncodingX-Fastly-Request-ID: 65126e9bf9e3ab3ab80ea3a48cf6d4163ab741aecf-cache-status: DYNAMICReport-To: {endpoints:{url:https:\/\/a.nel.cloudflare.com\/report\/v4?srsdcX2rWPodcEVmqHM0FHoTdHC9wddE%2BcqUJ1qy3ozDCzzh04mRzUJP3q3iWB1%2BwTu%2BrSkIz5SqAY8%2FKlZLKnSDGuqdM3mQuu32zpNkrIuobN2v8AvmttMMsPdABJMc0EwHurg%3D%3D},group:cf-nel,max_age:604800}NEL: {success_fraction:0,report_to:cf-nel,max_age:604800}Server: cloudflareCF-RAY: 909015ffbb4f5ec6-PDXalt-svc: h3:443; ma86400server-timing: cfL4;desc?protoTCP&rtt6426&min_rtt6426&rtt_var3213&sent1&recv3&lost0&retrans0&sent_bytes0&recv_bytes56&delivery_rate0&cwnd249&unsent_bytes0&cid0000000000000000&ts0&x0 !DOCTYPE html>html langzh-Hans>head> meta charsetutf-8> meta http-equivx-ua-compatible contentieedge> meta nameviewport contentwidthdevice-width, initial-scale1.0> title>Lialosiu's Note/title> meta propertyog:type contentwebsite>meta propertyog:title contentLialosiu's Note>meta propertyog:url contenthttp://lialosiu.com/index.html>meta propertyog:site_name contentLialosiu's Note>meta propertyog:locale contentzh_CN>meta propertyarticle:author contentLialosiu>meta nametwitter:card contentsummary>meta nametwitter:creator content@lialosiu> link relstylesheet hrefhttps://cdn.jsdelivr.net/npm/semantic-ui-css@2.4.1/semantic.min.css integritysha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q crossoriginanonymous> link relstylesheet href/css/app.css> !-- Global site tag (gtag.js) - Google Analytics --> script async srchttps://www.googletagmanager.com/gtag/js?idUA-26091800-1>/script> script> window.dataLayer window.dataLayer || ; function gtag(){dataLayer.push(arguments);} gtag(js, new Date()); gtag(config, UA-26091800-1); /script> meta namegenerator contentHexo 6.3.0>/head>body>div idapp> div classheader-bar :class{at-top: isWindowScrollTop}> a classsite-name-block href/> img classsite-master-avatar srchttps://www.gravatar.com/avatar/d3f817314d352b397f3a2c816ebc73bd?s32 altavatar> div classsite-title>Lialosiu's Note/div> /a> div classflex>/div> div classsite-links> a classsite-link hrefhttps://github.com/lialosiu target_blank> i classgithub icon>/i> div classtext>Github/div> /a> a classsite-link hrefhttps://steamcommunity.com/id/lialosiu target_blank> i classsteam icon>/i> div classtext>Steam/div> /a> a classsite-link hrefhttps://twitter.com/lialosiu target_blank> i classtwitter icon>/i> div classtext>Twitter/div> /a> /div>/div> div classsite-header> div classheader-img data-parallaxscroll data-image-src/assests/header.jpg>/div> div classoverlay> h1 classpost-title> Lialosiu's Note /h1> div classpost-subtitle> 各种记录 /div> /div>/div> div classsite-body> div classleft-side> div classleft-side-twitter> a classtwitter-timeline data-langzh-cn data-height3000 data-themedark target_blank relnoopener hrefhttps://twitter.com/lialosiu?ref_srctwsrc%5Etfw> div classtwitter-loading>/div>/a> /div>/div>div classmain-side> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2020/05/28/nekotsuku/>歌词听写 - 『Get the Freedom』/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2020-05-28T04:52:25.000Z>2020-05-28 small>12:52/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube.com/embed/jNg5qSNO5-A frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>p>UPDATE: 2020/07/06/p>p>官方的歌词来了:/p>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>/pre>/td>td classcode>pre>span classline>今始まる 見上げた空/span>br>span classline>何かが待っているから/span>br>span classline>/span>br>span classline>木漏れ日差し込む 眩しい校舎に/span>br>span classline>キミの横顔がキラキラ光るよ/span>br>span classline>晴れの日 雨の日/span>br>span classline>囚われの日々も/span>br>span classline>そう一人じゃないんだ/span>br>span classline>/span>br>span classline>運命?はたまた 神のいたずらか/span>br>span classline>一層深まるこの絆/span>br>span classline>/span>br>span classline>手と手も繋いで 動き出した/span>br>span classline>奇想天外な ホーンテッドラブ/span>br>span classline>/span>br>span classline>さあ 行こうよ 壁の向こう/span>br>span classline>キミとならば怖くはないから/span>br>span classline>/span>br>span classline>get the freedom/span>br>/pre>/td>/tr>/table>/figure>p>草,没想到啊,奇想天外后边居然是外来词…/p>p>而且那个な居然是断句在前面的…/p>p>特么的听得出来才有鬼了(/p>p>其他的倒是都还好,部分听漏了个字或者濁点敲错的(/p>hr>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>/pre>/td>td classcode>pre>span classline>今、始まる 見上げた空/span>br>span classline>なにかが まっているから/span>br>span classline>/span>br>span classline>木漏れ日 差し込む 眩しい校舎に/span>br>span classline>君の横顔が キラキラ光るよ/span>br>span classline>晴れの日 雨の日 囚われの日々も/span>br>span classline>そう、一人じゃないんだ/span>br>span classline>/span>br>span classline>運命 はたまた 神のいたずらが/span>br>span classline>一層 深まる この絆/span>br>span classline>/span>br>span classline>手と手も繋いで 動き出した/span>br>span classline>奇想天外 ????/span>br>span classline>/span>br>span classline>さぁ、行こうよ 壁の向こう/span>br>span classline>君となら怖くないから/span>br>span classline>/span>br>span classline>Get the Freedom/span>br>/pre>/td>/tr>/table>/figure>p>emmmmmmm….. 奇想天外后面那一句没听懂,估计也是个成语?吃了词汇量不足的亏(/p>p>方糖是真的棒,但是为嘛アキ居然是配角….(/p>p>希望稍微有多点戏份吧w/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2019/06/06/wakabairono-quartet/>歌词听写 - 『イノセント・プリンセス』/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2019-06-06T04:46:00.000Z>2019-06-06 small>12:46/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube.com/embed/NYwVPYM6Pr4 frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>/pre>/td>td classcode>pre>span classline>「イノセント・プリンセス」/span>br>span classline>/span>br>span classline> days 風を抜ければ/span>br>span classline> そこは new world/span>br>span classline> ときめき奏でる音色/span>br>span classline> 私たちは 無限のチャンス/span>br>span classline> たずされで 笑顔ならall collect/span>br>span classline> 目が合うかな 試してみよう/span>br>span classline> またちょっと遠くても/span>br>span classline> 経験値ひとつふたつ重ねるんだ/span>br>span classline> 芽ばえた想いはクリアな宝物/span>br>span classline> 色々知らないことがいっばいで/span>br>span classline> 不器用な ハチャメチャプリンセスだけど/span>br>span classline> ミントが彩るケーキを食べるような/span>br>span classline> 甘くで爽やかな君との日々/span>br>span classline> 約束をしよう 輝いてっく未来/span>br>span classline> ドキドキさせて イノセントに/span>br>/pre>/td>/tr>/table>/figure>p>方糖还是一如既往的稳定输出/p>p>嘛,听写了一遍歌词,不过好几个地方都不太确定…. del>等到时官方歌词出来再对比一下吧(/del>/p>hr>p>UPDATE:/p>p>官方歌词出来了,换成官方版(/p>p>不过我听错的地方也不多,主要是各种英文听错了(/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2018/12/11/sakura-moyu/>歌词听写 - 『さくら、もゆ。-as the Night's, Reincarnation-』オープニングムービー/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2018-12-10T16:24:31.000Z>2018-12-11 small>00:24/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>span classline>20/span>br>span classline>21/span>br>span classline>22/span>br>span classline>23/span>br>span classline>24/span>br>span classline>25/span>br>span classline>26/span>br>span classline>27/span>br>span classline>28/span>br>/pre>/td>td classcode>pre>span classline>「さくら、Reincarnation」/span>br>span classline>/span>br>span classline>そう、確かなこと/span>br>span classline>思い出して/span>br>span classline>小さいな手のひらに/span>br>span classline>握った花びらが/span>br>span classline>ひとひら舞い落ちて/span>br>span classline>初めて出会いったの/span>br>span classline>同じ場所で/span>br>span classline>いつから忘れてった/span>br>span classline>高鳴る気持ちを/span>br>span classline>隠さないで/span>br>span classline>わたしにすべて見せて/span>br>span classline>You're smile is mine/span>br>span classline>さくら舞う夜に/span>br>span classline>もう一度夢を見よう/span>br>span classline>現実を脱ぎ捨て花になろう/span>br>span classline>遥かな/span>br>span classline>風のささやき/span>br>span classline>耳をすませば/span>br>span classline>ほら、終わらない/span>br>span classline>さくらもゆ軌跡/span>br>span classline>ふたりで歩んでこう/span>br>span classline>降り注ぎ煌めく夢になろう/span>br>span classline>彷徨う迷子のように/span>br>span classline>見失いでも/span>br>span classline>ほら、輝く/span>br>span classline>愛は消えない/span>br>/pre>/td>/tr>/table>/figure>div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube-nocookie.com/embed/A1dz7xQHrlo frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>p>F社真是棒到爆炸 del>然而各种跳票…🤣/del>/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2017/02/07/laravel-mongo%E5%AF%B9%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B%E5%90%8C%E5%80%BC%E7%9A%84%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86/>laravel-mongo对不同类型同值的数据处理/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2017-02-07T03:51:38.000Z>2017-02-07 small>11:51/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/laravel/ reltag>laravel/a>, a classarticle-tag-none-link href/tags/mongo/ reltag>mongo/a> /div> /div> div classarticle-entry> p>最近敲代码的时候发现,a target_blank relnoopener hrefhttps://github.com/jenssegers/laravel-mongodb>laravel-mongo/a> 在 ORM 的时候,如果用 save 更新一个值,类型不同但值相同,是不会写入 db 的…/p>p>举个栗子:/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classkeyword>new/span> span classtitle class_>Data/span>();/span>br>span classline>span classvariable>$data/span>->_id span classnumber>1/span>;/span>br>span classline>span classvariable>$data/span>->a span classnumber>123/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>那么mongo里面就是 code>a: int32 123/code>/p>p>这时候如果再/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classtitle class_>Data/span>::span classtitle function_ invoke__>find/span>(span classnumber>1/span>);/span>br>span classline>span classvariable>$data/span>->a span classstring>'123'/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>问题就来了…/p>p>mongo 里面的值还特么的是 code>a: int32 123/code>/p>p>并没有被更新成 code>a: string '123'/code>/p>p>但是如果是个不同类型不同值/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classtitle class_>Data/span>::span classtitle function_ invoke__>find/span>(span classnumber>1/span>);/span>br>span classline>span classvariable>$data/span>->a span classstring>'321'/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>就会被更新成 code>a: string '321'/code>/p>p>这个问题略蛋疼啊…/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2016/07/05/php-fpm%E9%85%8D%E7%BD%AE%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9D%91/>php-fpm配置的一个坑/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2016-07-05T08:38:00.000Z>2016-07-05 small>16:38/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>调了一个下午,发现 php-fpm 有个怪坑/p>p>我在 docker 下,基于 code>php:7.0-fpm/code> 镜像,构建了一个容器/p>p>并且 code>ADD ./app.pool.conf /usr/local/etc/php-fpm.d//code> ,放了个 pool 进去/p>p>具体内容为/p>figure classhighlight ini>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>span classline>20/span>br>span classline>21/span>br>span classline>22/span>br>span classline>23/span>br>span classline>24/span>br>span classline>25/span>br>span classline>26/span>br>span classline>27/span>br>span classline>28/span>br>span classline>29/span>br>span classline>30/span>br>span classline>31/span>br>span classline>32/span>br>span classline>33/span>br>span classline>34/span>br>span classline>35/span>br>span classline>36/span>br>span classline>37/span>br>span classline>38/span>br>span classline>39/span>br>span classline>40/span>br>span classline>41/span>br>span classline>42/span>br>span classline>43/span>br>span classline>44/span>br>span classline>45/span>br>span classline>46/span>br>span classline>47/span>br>span classline>48/span>br>span classline>49/span>br>span classline>50/span>br>span classline>51/span>br>span classline>52/span>br>span classline>53/span>br>span classline>54/span>br>span classline>55/span>br>span classline>56/span>br>span classline>57/span>br>span classline>58/span>br>span classline>59/span>br>span classline>60/span>br>span classline>61/span>br>span classline>62/span>br>span classline>63/span>br>span classline>64/span>br>span classline>65/span>br>span classline>66/span>br>span classline>67/span>br>span classline>68/span>br>span classline>69/span>br>span classline>70/span>br>span classline>71/span>br>span classline>72/span>br>span classline>73/span>br>span classline>74/span>br>span classline>75/span>br>span classline>76/span>br>/pre>/td>td classcode>pre>span classline>span classcomment>; Unix user/group of processes/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> The user is mandatory. If the group is not set, the default user's group/span>/span>br>span classline>span classcomment>; will be used./span>/span>br>span classline>span classattr>user/span> www-data/span>br>span classline>span classattr>group/span> www-data/span>br>span classline>/span>br>span classline>span classcomment>; The address on which to accept FastCGI requests./span>/span>br>span classline>span classcomment>; Valid syntaxes are:/span>/span>br>span classline>span classcomment>; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on/span>/span>br>span classline>span classcomment>; a specific port;/span>/span>br>span classline>span classcomment>; 'port' - to listen on a TCP socket to all addresses on a/span>/span>br>span classline>span classcomment>; specific port;/span>/span>br>span classline>span classcomment>; '/path/to/unix/socket' - to listen on a unix socket./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>listen/span> span classnumber>0.0/span>.span classnumber>0.0/span>:span classnumber>9000/span>/span>br>span classline>/span>br>span classline>span classcomment>; Choose how the process manager will control the number of child processes./span>/span>br>span classline>span classcomment>; Possible Values:/span>/span>br>span classline>span classcomment>; static - a fixed number (pm.max_children) of child processes;/span>/span>br>span classline>span classcomment>; dynamic - the number of child processes are set dynamically based on the/span>/span>br>span classline>span classcomment>; following directives. With this process management, there will be/span>/span>br>span classline>span classcomment>; always at least 1 children./span>/span>br>span classline>span classcomment>; pm.max_children - the maximum number of children that can/span>/span>br>span classline>span classcomment>; be alive at the same time./span>/span>br>span classline>span classcomment>; pm.start_servers - the number of children created on startup./span>/span>br>span classline>span classcomment>; pm.min_spare_servers - the minimum number of children in 'idle'/span>/span>br>span classline>span classcomment>; state (waiting to process). If the number/span>/span>br>span classline>span classcomment>; of 'idle' processes is less than this/span>/span>br>span classline>span classcomment>; number then some children will be created./span>/span>br>span classline>span classcomment>; pm.max_spare_servers - the maximum number of children in 'idle'/span>/span>br>span classline>span classcomment>; state (waiting to process). If the number/span>/span>br>span classline>span classcomment>; of 'idle' processes is greater than this/span>/span>br>span classline>span classcomment>; number then some children will be killed./span>/span>br>span classline>span classcomment>; ondemand - no children are created at startup. Children will be forked when/span>/span>br>span classline>span classcomment>; new requests will connect. The following parameter are used:/span>/span>br>span classline>span classcomment>; pm.max_children - the maximum number of children that/span>/span>br>span classline>span classcomment>; can be alive at the same time./span>/span>br>span classline>span classcomment>; pm.process_idle_timeout - The number of seconds after which/span>/span>br>span classline>span classcomment>; an idle process will be killed./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>pm/span> dynamic/span>br>span classline>/span>br>span classline>span classcomment>; The number of child processes to be created when pm is set to 'static' and the/span>/span>br>span classline>span classcomment>; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'./span>/span>br>span classline>span classcomment>; This value sets the limit on the number of simultaneous requests that will be/span>/span>br>span classline>span classcomment>; served. Equivalent to the ApacheMaxClients directive with mpm_prefork./span>/span>br>span classline>span classcomment>; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP/span>/span>br>span classline>span classcomment>; CGI. The below defaults are based on a server without much resources. Don't/span>/span>br>span classline>span classcomment>; forget to tweak pm.* to fit your needs./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used when pm is set to 'static', 'dynamic' or 'ondemand'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>pm.max_children/span> span classnumber>20/span>/span>br>span classline>/span>br>span classline>span classcomment>; The number of child processes created on startup./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2/span>/span>br>span classline>span classattr>pm.start_servers/span> span classnumber>2/span>/span>br>span classline>/span>br>span classline>span classcomment>; The desired minimum number of idle server processes./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Mandatory when pm is set to 'dynamic'/span>/span>br>span classline>span classattr>pm.min_spare_servers/span> span classnumber>1/span>/span>br>span classline>/span>br>span classline>span classcomment>; The desired maximum number of idle server processes./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Mandatory when pm is set to 'dynamic'/span>/span>br>span classline>span classattr>pm.max_spare_servers/span> span classnumber>3/span>/span>br>span classline>/span>br>span classline>span classcomment>;---------------------/span>/span>br>span classline>/span>br>span classline>span classcomment>; Make specific Docker environment variables available to PHP/span>/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_DATABASE/span> $DB_1_ENV_MYSQL_DATABASE/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_USER/span> $DB_1_ENV_MYSQL_USER/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_PASSWORD/span> $DB_1_ENV_MYSQL_PASSWORD/span>br>span classline>/span>br>span classline>span classattr>catch_workers_output/span> span classliteral>yes/span>/span>br>/pre>/td>/tr>/table>/figure>p>然而…/p>p>php-fpm 一启动就报错/p>figure classhighlight accesslog>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>/pre>/td>td classcode>pre>span classline>root@8ddf4ad1d3b6:/usr/local/etc/php-fpm.d# php-fpm/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: span classstring>/usr/local/etc/php-fpm.d/applll.pool.conf:4/span> unknown entry 'user'/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: Unable to include /usr/local/etc/php-fpm.d/applll.pool.conf from /usr/local/etc/php-fpm.conf at line span classnumber>4/span>/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: failed to load configuration file '/usr/local/etc/php-fpm.conf'/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: FPM initialization failed/span>br>/pre>/td>/tr>/table>/figure>p>研究了好几个钟头无果/p>p>瞎弄的时候把 code>app.pool.conf/code> 重命名成了 code>aaa.pool.conf/code>/p>p>神奇的发现, php-fpm 正常了/p>figure classhighlight accesslog>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>root@8ddf4ad1d3b6:/usr/local/etc/php-fpm.d# php-fpm/span>br>span classline>span classstring>05-Jul-2016 08:34:07/span> NOTICE: fpm is running, pid span classnumber>188/span>/span>br>span classline>span classstring>05-Jul-2016 08:34:07/span> NOTICE: ready to handle connections/span>br>/pre>/td>/tr>/table>/figure>p>然后测试了几个文件名,发现只要是 code>app/code> 打头,都会造成 php-fpm 抽筋…目测是撞上了什么奇怪的规则/p>p>然而我 Google 搜了好久都没发现有人报告这个问题…_(:3」∠)_/p>p>嘛,自己记录一下吧./p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/>Laravel 在极高的瞬间并发时出现的问题/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2016-01-17T06:36:00.000Z>2016-01-17 small>14:36/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>又踩了了一个坑/p>p>之前曾经出现过 laravel 在极高的瞬间并发的时候,会出现session状态丢失的问题。原因是laravel中,session默认储存在文件系统,在瞬间并发时,可能由于文件系统io的原因,导致session文件读写失败,进而造成session丢失。/p>p>这个问题我当时是直接把session存放在cookie或者数据库中解决了。/p>p>然而今天又出现了新状况,也是瞬间高并发的锅。/p>img src/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/20160117221844.jpg class>p>如图,这是在ngjs下的一个并发上传的控件,会同时并发上传选择的文件,且在上传前会并发请求以查询文件是否已上传,以完成续传功能。/p>p>1秒内大概有15个并发连接/p>p>在这几个并发连接中,有部分会发生错误,扔我一脸500/p>img src/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/20160117222400.jpg class>p>具体报错是^/p>p>然而,我明显没设错mysql账号密码啦/p>p>而且我.env文件中数据库相关的设置是:/p>figure classhighlight ini>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>/pre>/td>td classcode>pre>span classline>span classattr>DB_HOST/span>localhost/span>br>span classline>span classattr>DB_DATABASE/span>amaoto-core/span>br>span classline>span classattr>DB_USERNAME/span>root/span>br>span classline>DB_PASSWORD/span>br>/pre>/td>/tr>/table>/figure>p>然而报错是说我用了forge作为用户名连接mysql/p>p>等等,forge好熟悉啊/p>p>这货不就是laravel配置文件中的连mysql的默认用户名咩/p>p>检查config/database.php/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>/pre>/td>td classcode>pre>span classline>span classstring>'mysql'/span> > /span>br>span classline> span classstring>'driver'/span> > span classstring>'mysql'/span>,/span>br>span classline> span classstring>'host'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_HOST'/span>, span classstring>'localhost'/span>),/span>br>span classline> span classstring>'database'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_DATABASE'/span>, span classstring>'forge'/span>),/span>br>span classline> span classstring>'username'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_USERNAME'/span>, span classstring>'forge'/span>),/span>br>span classline> span classstring>'password'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_PASSWORD'/span>, span classstring>''/span>),/span>br>span classline> span classstring>'charset'/span> > span classstring>'utf8'/span>,/span>br>span classline> span classstring>'collation'/span> > span classstring>'utf8_unicode_ci'/span>,/span>br>span classline> span classstring>'prefix'/span> > span classstring>''/span>,/span>br>span classline> span classstring>'strict'/span> > span classliteral>false/span>,/span>br>span classline> ,/span>br>/pre>/td>/tr>/table>/figure>p>果然/p>p>也就是说,code>env('DB_USERNAME', 'forge')/code> 没能成功读取code>.env/code>文件/p>p>参考之前session状态丢失的解决方法,那就不读取.env咯/p>p>然而不用code>.env/code>的话,把数据库账密写在code>config/database.php/code>也不科学/p>p>于是翻了翻文档/p>p>发现code>artisan/code>指令:code>config:cache/code> 可缓存配置文件/p>p>马上执行试试,重新测试一看,完美解决。/p>p>嘛,所以难得的更新了blog做个笔记ww/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/>修复 Windows 10 中损坏的 Appx 应用/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2015-08-28T08:14:43.000Z>2015-08-28 small>16:14/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/win10/ reltag>win10/a> /div> /div> div classarticle-entry> p>前段时间手贱把 Surface Pro 3 的 系统升级到了 Windows Indsider Fast Ring 通道的 10525 版本,然后发现 a target_blank relnoopener hrefhttps://www.google.com/intl/zh-CN/chrome/browser/desktop/index.html>Chrome/a> 和 a hrefvirtualbox.org>Virtual Box/a> 都出现了兼容性问题,估计是新的内存管理机制的锅。/p>p>因为工作需要用到 Vagrant,a target_blank relnoopener hrefhttp://virtualbox.org/>Virtual Box/a> 不能用简直不能忍,于是我滚回到了10240/p>p>然而没想到回滚完成后,好几个 Appx 应用都出问题了,应用名显示为 code>@{microsoft.windowscommunicationsapps_17.6120.42011.0_x64__8wekyb3d8bbwe}/code> 类似这样的形式。/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/000.jpg class>p>出问题的应用分别为 Edge、日历与邮件、应用商店、Cortana,其中 Edge 和 Cortana 只是名字没了Icon没了,商店则是变成了英文菜单,日历与邮件则是直接打开不能、更新不能、卸载不能、完全拿他没办法。/p>p>强行忍了一个多星期,实在受不了,于是昨天抽时间出来终于把这问题解决了,写下来记录下步骤 del>顺便给blog填点东西/del>/p>hr>p>首先,祭出最基本的 code>wsreset/code> 大法,管理员运行,然而并没有什么卵用/p>p>试着跑了下系统自带的code>疑难解答/code>,然而它提示说……/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/001.jpg class>p>|д゚)/p>p>好咯,还是要自己动手/p>p>既然系统搞不定,那就自己来研究吧/p>p>管理员身份打开 code>Powershell/code>,把所有包重新注册一遍/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppXPackage/span> | span classkeyword>Foreach/span> {span classbuilt_in>Add-AppxPackage/span> span classliteral>-DisableDevelopmentMode/span> span classliteral>-Register/span> span classstring>"span classvariable>$/span>(span classvariable>$_/span>.InstallLocation)\AppXManifest.xml"/span>}/span>br>/pre>/td>/tr>/table>/figure>p>坐等了大概一分钟,跑完了/p>p>跑完瞬间发现,Edge恢复正常了,那写坏掉的应用名也恢复正常了!/p>p>然而还是有两个坏掉的图标……/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/002.jpg class>p>日历与邮件还是不行_(:3」∠)_/p>p>瞄了一眼 Powershell,发现有报错/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/003.jpg class>p>咦,code>C:\/code> 在C盘根目录找是什么鬼/p>p>输出一下包信息看一下先:/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> microsoft.windowscommunicationsapps*/span>br>/pre>/td>/tr>/table>/figure>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/004.jpg class>p>妈了个鸡,为何 InstallLocation 不见了……/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>cd/span> span classstring>"C:\Program Files\WindowsApps\"/span>/span>br>span classline>span classbuilt_in>ls/span>/span>br>/pre>/td>/tr>/table>/figure>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/005.jpg class>p>妈了个蛋,还真没了这个文件夹……/p>p>存在的文件是 code>42011/code> 然而包信息里面的是 code>42001/code>/p>p>好吧,估计这个就是问题所在了……/p>p>试试移除掉这个包咯/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> *microsoft.windowscommunicationsapps* | span classbuilt_in>Remove-AppxPackage/span>/span>br>/pre>/td>/tr>/table>/figure>p>然而并没有用,还是读的根目录/p>p>想了想,既然只会读根目录,那我就把 42011 的 AppXManifest.xml 扔在 C: 根目录总能读到了吧?/p>p>于是把整个 42011 的所有文件复制一份扔在根目录/p>p>然后试着:/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Add-AppxPackage/span> span classliteral>-register/span> span classstring>"C:\AppxManifest.xml"/span> –DisableDevelopmentMode/span>br>/pre>/td>/tr>/table>/figure>p>有反应!但是依然是报错信息,说在 code>C:\ProgramData\Microsoft\Windows\AppRepository/code> 里面找不到对应的xml/p>p>那我就复制一份进去咯/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>xcopy span classstring>'C:\AppxManifest.xml'/span> microsoft.windowscommunicationsapps_17.span classnumber>6106.42001/span>.span classnumber>0/span>_x64__8wekyb3d8bbwe.xml/span>br>/pre>/td>/tr>/table>/figure>p>再试试看!/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Add-AppxPackage/span> span classliteral>-register/span> span classstring>"C:\AppxManifest.xml"/span> –DisableDevelopmentMode/span>br>/pre>/td>/tr>/table>/figure>p>nice!成功运行!/p>p>打开开始菜单看看,邮件恢复了!/p>p>为了防止出现各种奇怪的问题,先把包砍了再从商店装一遍吧/p>p>然而并不能在GUI下直接卸载,那就老方法/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> *microsoft.windowscommunicationsapps* | span classbuilt_in>Remove-AppxPackage/span>/span>br>/pre>/td>/tr>/table>/figure>p>ok,卸掉/p>p>然后商店重新安装/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/006.jpg class>p>搞定 (´・ω・`)/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2015/02/17/homestead2.0.9%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9D%91/>Homestead 2.0.9 的一个坑/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2015-02-17T01:55:00.000Z>2015-02-17 small>09:55/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>整个下午都在调戏 a target_blank relnoopener hrefhttp://laravel.com/docs/5.0>Laravel 5/a> 和 a target_blank relnoopener hrefhttp://laravel.com/docs/5.0/homestead>Homestead/a>,然后掉坑里了……记录一下/p>p>Homestead.yaml 配置文件中,folders列,如果要设置为当前路径,不能够这样:/p>figure classhighlight yaml>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classattr>folders:/span>/span>br>span classline> span classbullet>-/span> span classattr>map:/span> span classstring>./span>/span>br>span classline> span classattr>to:/span> span classstring>/home/vagrant/your-dir/span>/span>br>/pre>/td>/tr>/table>/figure>p>而是要这样:/p>figure classhighlight yaml>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classattr>folders:/span>/span>br>span classline> span classbullet>-/span> span classattr>map:/span> span classstring>.//span>/span>br>span classline> span classattr>to:/span> span classstring>/home/vagrant/your-dir/span>/span>br>/pre>/td>/tr>/table>/figure>p>就因为这尼玛的少了个斜杠 code>//code>, code>/vagrant/code> 一直mount不了……/p> /div> /div> footer classarticle-footer> /footer>/article> /div>div classright-side> div classright-side-assistance> a target_blank relnoopener hrefhttp://www.favo-soft.jp>img srchttp://www.favo-soft.jp/soft/product/sakura/banner/banner_l_kuro.jpg altさくら、もゆ。-as the Night's, Reincarnation- 応援中!!>/a> a target_blank relnoopener hrefhttp://www.favo-soft.jp>img srchttp://www.favo-soft.jp/soft/product/sakura/banner/banner_l_haru.jpg altさくら、もゆ。-as the Night's, Reincarnation- 応援中!!>/a> a target_blank relnoopener hrefhttp://www.eukleia.co.jp/eushully/>img srchttp://www.eukleia.co.jp/eushully/eu19/banner/banner_eu19lb.jpg alt「封緘のグラセスタ」応援中!>/a> a target_blank relnoopener hrefhttps://www.lumpofsugar.co.jp/product/yorikure/>img srchttps://www.lumpofsugar.co.jp/product/yorikure/campaign/images/bn/150_650a.jpg alt『縁りて此の葉は紅に』2018年1月26日発売予定!>/a> a target_blank relnoopener hrefhttps://www.lumpofsugar.co.jp/product/yorikure/>img srchttps://www.lumpofsugar.co.jp/product/yorikure/campaign/images/bn/150_650c.jpg alt『縁りて此の葉は紅に』2018年1月26日発売予定!>/a> /div>/div> /div> div classsite-footer> Copyright © 2015-2023 Lialosiu All Rights Reserved. Powered by a hrefhttps://hexo.io/ target_blank>Hexo/a>. Hosted on a hrefhttps://pages.github.com/ target_blank>GitHub Pages/a>./div>/div>/body>script srchttps://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js integritysha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8 crossoriginanonymous>/script>script srchttps://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.min.js integritysha256-1Q2q5hg2YXp9fYlM++sIEXOcUb8BRSDUsQ1zXvLBqmA crossoriginanonymous>/script>script srchttps://cdn.jsdelivr.net/npm/jquery-parallax.js@1.5.0/parallax.min.js integritysha256-cNb9ArVGKhXkedowZK9xRxCpr6qqck5JvCAsuMzJlPw crossoriginanonymous>/script>script async srchttps://platform.twitter.com/widgets.js charsetutf-8>/script>script src/js/app.js>/script>/html>
Port 443
HTTP/1.1 200 OKDate: Tue, 28 Jan 2025 09:51:47 GMTContent-Type: text/html; charsetutf-8Transfer-Encoding: chunkedConnection: keep-alivelast-modified: Thu, 13 Apr 2023 06:53:34 GMTaccess-control-allow-origin: *expires: Tue, 28 Jan 2025 10:01:47 GMTCache-Control: max-age600x-proxy-cache: MISSx-github-request-id: 3A84:3EAB0E:9FE41B:A3EE71:6798A8B2via: 1.1 varnishAge: 0x-served-by: cache-pdx12326-PDXx-cache: MISSx-cache-hits: 0x-timer: S1738057907.343440,VS0,VE98vary: Accept-Encodingx-fastly-request-id: e3b087d40e296a31c8e3d5d2aa19fb61ef493e4dcf-cache-status: DYNAMICReport-To: {endpoints:{url:https:\/\/a.nel.cloudflare.com\/report\/v4?sV3b%2FJFl2YwJpovaY8PjjgvrXmfAFxUDMN5YIiCiAQedgB7TSXx76jBgvgFm1oNjmyR8%2FGvzKYVOFCaMonnS9ysVnH8McZOQqM6axLo%2BlQUKAhaICcrA902bBULRItn8H5qDp1g%3D%3D},group:cf-nel,max_age:604800}NEL: {success_fraction:0,report_to:cf-nel,max_age:604800}Server: cloudflareCF-RAY: 90901600c8ac2f27-PDXalt-svc: h3:443; ma86400server-timing: cfL4;desc?protoTCP&rtt6206&min_rtt6033&rtt_var1822&sent5&recv6&lost0&retrans0&sent_bytes2853&recv_bytes728&delivery_rate480026&cwnd252&unsent_bytes0&cid61e68de2b0d6071c&ts136&x0 !DOCTYPE html>html langzh-Hans>head> meta charsetutf-8> meta http-equivx-ua-compatible contentieedge> meta nameviewport contentwidthdevice-width, initial-scale1.0> title>Lialosiu's Note/title> meta propertyog:type contentwebsite>meta propertyog:title contentLialosiu's Note>meta propertyog:url contenthttp://lialosiu.com/index.html>meta propertyog:site_name contentLialosiu's Note>meta propertyog:locale contentzh_CN>meta propertyarticle:author contentLialosiu>meta nametwitter:card contentsummary>meta nametwitter:creator content@lialosiu> link relstylesheet hrefhttps://cdn.jsdelivr.net/npm/semantic-ui-css@2.4.1/semantic.min.css integritysha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q crossoriginanonymous> link relstylesheet href/css/app.css> !-- Global site tag (gtag.js) - Google Analytics --> script async srchttps://www.googletagmanager.com/gtag/js?idUA-26091800-1>/script> script> window.dataLayer window.dataLayer || ; function gtag(){dataLayer.push(arguments);} gtag(js, new Date()); gtag(config, UA-26091800-1); /script> meta namegenerator contentHexo 6.3.0>/head>body>div idapp> div classheader-bar :class{at-top: isWindowScrollTop}> a classsite-name-block href/> img classsite-master-avatar srchttps://www.gravatar.com/avatar/d3f817314d352b397f3a2c816ebc73bd?s32 altavatar> div classsite-title>Lialosiu's Note/div> /a> div classflex>/div> div classsite-links> a classsite-link hrefhttps://github.com/lialosiu target_blank> i classgithub icon>/i> div classtext>Github/div> /a> a classsite-link hrefhttps://steamcommunity.com/id/lialosiu target_blank> i classsteam icon>/i> div classtext>Steam/div> /a> a classsite-link hrefhttps://twitter.com/lialosiu target_blank> i classtwitter icon>/i> div classtext>Twitter/div> /a> /div>/div> div classsite-header> div classheader-img data-parallaxscroll data-image-src/assests/header.jpg>/div> div classoverlay> h1 classpost-title> Lialosiu's Note /h1> div classpost-subtitle> 各种记录 /div> /div>/div> div classsite-body> div classleft-side> div classleft-side-twitter> a classtwitter-timeline data-langzh-cn data-height3000 data-themedark target_blank relnoopener hrefhttps://twitter.com/lialosiu?ref_srctwsrc%5Etfw> div classtwitter-loading>/div>/a> /div>/div>div classmain-side> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2020/05/28/nekotsuku/>歌词听写 - 『Get the Freedom』/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2020-05-28T04:52:25.000Z>2020-05-28 small>12:52/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube.com/embed/jNg5qSNO5-A frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>p>UPDATE: 2020/07/06/p>p>官方的歌词来了:/p>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>/pre>/td>td classcode>pre>span classline>今始まる 見上げた空/span>br>span classline>何かが待っているから/span>br>span classline>/span>br>span classline>木漏れ日差し込む 眩しい校舎に/span>br>span classline>キミの横顔がキラキラ光るよ/span>br>span classline>晴れの日 雨の日/span>br>span classline>囚われの日々も/span>br>span classline>そう一人じゃないんだ/span>br>span classline>/span>br>span classline>運命?はたまた 神のいたずらか/span>br>span classline>一層深まるこの絆/span>br>span classline>/span>br>span classline>手と手も繋いで 動き出した/span>br>span classline>奇想天外な ホーンテッドラブ/span>br>span classline>/span>br>span classline>さあ 行こうよ 壁の向こう/span>br>span classline>キミとならば怖くはないから/span>br>span classline>/span>br>span classline>get the freedom/span>br>/pre>/td>/tr>/table>/figure>p>草,没想到啊,奇想天外后边居然是外来词…/p>p>而且那个な居然是断句在前面的…/p>p>特么的听得出来才有鬼了(/p>p>其他的倒是都还好,部分听漏了个字或者濁点敲错的(/p>hr>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>/pre>/td>td classcode>pre>span classline>今、始まる 見上げた空/span>br>span classline>なにかが まっているから/span>br>span classline>/span>br>span classline>木漏れ日 差し込む 眩しい校舎に/span>br>span classline>君の横顔が キラキラ光るよ/span>br>span classline>晴れの日 雨の日 囚われの日々も/span>br>span classline>そう、一人じゃないんだ/span>br>span classline>/span>br>span classline>運命 はたまた 神のいたずらが/span>br>span classline>一層 深まる この絆/span>br>span classline>/span>br>span classline>手と手も繋いで 動き出した/span>br>span classline>奇想天外 ????/span>br>span classline>/span>br>span classline>さぁ、行こうよ 壁の向こう/span>br>span classline>君となら怖くないから/span>br>span classline>/span>br>span classline>Get the Freedom/span>br>/pre>/td>/tr>/table>/figure>p>emmmmmmm….. 奇想天外后面那一句没听懂,估计也是个成语?吃了词汇量不足的亏(/p>p>方糖是真的棒,但是为嘛アキ居然是配角….(/p>p>希望稍微有多点戏份吧w/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2019/06/06/wakabairono-quartet/>歌词听写 - 『イノセント・プリンセス』/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2019-06-06T04:46:00.000Z>2019-06-06 small>12:46/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube.com/embed/NYwVPYM6Pr4 frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>/pre>/td>td classcode>pre>span classline>「イノセント・プリンセス」/span>br>span classline>/span>br>span classline> days 風を抜ければ/span>br>span classline> そこは new world/span>br>span classline> ときめき奏でる音色/span>br>span classline> 私たちは 無限のチャンス/span>br>span classline> たずされで 笑顔ならall collect/span>br>span classline> 目が合うかな 試してみよう/span>br>span classline> またちょっと遠くても/span>br>span classline> 経験値ひとつふたつ重ねるんだ/span>br>span classline> 芽ばえた想いはクリアな宝物/span>br>span classline> 色々知らないことがいっばいで/span>br>span classline> 不器用な ハチャメチャプリンセスだけど/span>br>span classline> ミントが彩るケーキを食べるような/span>br>span classline> 甘くで爽やかな君との日々/span>br>span classline> 約束をしよう 輝いてっく未来/span>br>span classline> ドキドキさせて イノセントに/span>br>/pre>/td>/tr>/table>/figure>p>方糖还是一如既往的稳定输出/p>p>嘛,听写了一遍歌词,不过好几个地方都不太确定…. del>等到时官方歌词出来再对比一下吧(/del>/p>hr>p>UPDATE:/p>p>官方歌词出来了,换成官方版(/p>p>不过我听错的地方也不多,主要是各种英文听错了(/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2018/12/11/sakura-moyu/>歌词听写 - 『さくら、もゆ。-as the Night's, Reincarnation-』オープニングムービー/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2018-12-10T16:24:31.000Z>2018-12-11 small>00:24/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E6%97%A5%E5%B8%B8/>日常/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/%E6%97%A5%E5%B8%B8/ reltag>日常/a>, a classarticle-tag-none-link href/tags/%E6%AD%8C%E8%AF%8D/ reltag>歌词/a> /div> /div> div classarticle-entry> figure classhighlight plaintext>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>span classline>20/span>br>span classline>21/span>br>span classline>22/span>br>span classline>23/span>br>span classline>24/span>br>span classline>25/span>br>span classline>26/span>br>span classline>27/span>br>span classline>28/span>br>/pre>/td>td classcode>pre>span classline>「さくら、Reincarnation」/span>br>span classline>/span>br>span classline>そう、確かなこと/span>br>span classline>思い出して/span>br>span classline>小さいな手のひらに/span>br>span classline>握った花びらが/span>br>span classline>ひとひら舞い落ちて/span>br>span classline>初めて出会いったの/span>br>span classline>同じ場所で/span>br>span classline>いつから忘れてった/span>br>span classline>高鳴る気持ちを/span>br>span classline>隠さないで/span>br>span classline>わたしにすべて見せて/span>br>span classline>You're smile is mine/span>br>span classline>さくら舞う夜に/span>br>span classline>もう一度夢を見よう/span>br>span classline>現実を脱ぎ捨て花になろう/span>br>span classline>遥かな/span>br>span classline>風のささやき/span>br>span classline>耳をすませば/span>br>span classline>ほら、終わらない/span>br>span classline>さくらもゆ軌跡/span>br>span classline>ふたりで歩んでこう/span>br>span classline>降り注ぎ煌めく夢になろう/span>br>span classline>彷徨う迷子のように/span>br>span classline>見失いでも/span>br>span classline>ほら、輝く/span>br>span classline>愛は消えない/span>br>/pre>/td>/tr>/table>/figure>div classvideo-container ratio-16-9>iframe classresponsive-iframe srchttps://www.youtube-nocookie.com/embed/A1dz7xQHrlo frameborder0 allowaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen>/iframe>/div>p>F社真是棒到爆炸 del>然而各种跳票…🤣/del>/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2017/02/07/laravel-mongo%E5%AF%B9%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B%E5%90%8C%E5%80%BC%E7%9A%84%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86/>laravel-mongo对不同类型同值的数据处理/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2017-02-07T03:51:38.000Z>2017-02-07 small>11:51/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/laravel/ reltag>laravel/a>, a classarticle-tag-none-link href/tags/mongo/ reltag>mongo/a> /div> /div> div classarticle-entry> p>最近敲代码的时候发现,a target_blank relnoopener hrefhttps://github.com/jenssegers/laravel-mongodb>laravel-mongo/a> 在 ORM 的时候,如果用 save 更新一个值,类型不同但值相同,是不会写入 db 的…/p>p>举个栗子:/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classkeyword>new/span> span classtitle class_>Data/span>();/span>br>span classline>span classvariable>$data/span>->_id span classnumber>1/span>;/span>br>span classline>span classvariable>$data/span>->a span classnumber>123/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>那么mongo里面就是 code>a: int32 123/code>/p>p>这时候如果再/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classtitle class_>Data/span>::span classtitle function_ invoke__>find/span>(span classnumber>1/span>);/span>br>span classline>span classvariable>$data/span>->a span classstring>'123'/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>问题就来了…/p>p>mongo 里面的值还特么的是 code>a: int32 123/code>/p>p>并没有被更新成 code>a: string '123'/code>/p>p>但是如果是个不同类型不同值/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classvariable>$data/span> span classtitle class_>Data/span>::span classtitle function_ invoke__>find/span>(span classnumber>1/span>);/span>br>span classline>span classvariable>$data/span>->a span classstring>'321'/span>;/span>br>span classline>span classvariable>$data/span>->span classtitle function_ invoke__>save/span>();/span>br>/pre>/td>/tr>/table>/figure>p>就会被更新成 code>a: string '321'/code>/p>p>这个问题略蛋疼啊…/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2016/07/05/php-fpm%E9%85%8D%E7%BD%AE%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9D%91/>php-fpm配置的一个坑/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2016-07-05T08:38:00.000Z>2016-07-05 small>16:38/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>调了一个下午,发现 php-fpm 有个怪坑/p>p>我在 docker 下,基于 code>php:7.0-fpm/code> 镜像,构建了一个容器/p>p>并且 code>ADD ./app.pool.conf /usr/local/etc/php-fpm.d//code> ,放了个 pool 进去/p>p>具体内容为/p>figure classhighlight ini>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>span classline>12/span>br>span classline>13/span>br>span classline>14/span>br>span classline>15/span>br>span classline>16/span>br>span classline>17/span>br>span classline>18/span>br>span classline>19/span>br>span classline>20/span>br>span classline>21/span>br>span classline>22/span>br>span classline>23/span>br>span classline>24/span>br>span classline>25/span>br>span classline>26/span>br>span classline>27/span>br>span classline>28/span>br>span classline>29/span>br>span classline>30/span>br>span classline>31/span>br>span classline>32/span>br>span classline>33/span>br>span classline>34/span>br>span classline>35/span>br>span classline>36/span>br>span classline>37/span>br>span classline>38/span>br>span classline>39/span>br>span classline>40/span>br>span classline>41/span>br>span classline>42/span>br>span classline>43/span>br>span classline>44/span>br>span classline>45/span>br>span classline>46/span>br>span classline>47/span>br>span classline>48/span>br>span classline>49/span>br>span classline>50/span>br>span classline>51/span>br>span classline>52/span>br>span classline>53/span>br>span classline>54/span>br>span classline>55/span>br>span classline>56/span>br>span classline>57/span>br>span classline>58/span>br>span classline>59/span>br>span classline>60/span>br>span classline>61/span>br>span classline>62/span>br>span classline>63/span>br>span classline>64/span>br>span classline>65/span>br>span classline>66/span>br>span classline>67/span>br>span classline>68/span>br>span classline>69/span>br>span classline>70/span>br>span classline>71/span>br>span classline>72/span>br>span classline>73/span>br>span classline>74/span>br>span classline>75/span>br>span classline>76/span>br>/pre>/td>td classcode>pre>span classline>span classcomment>; Unix user/group of processes/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> The user is mandatory. If the group is not set, the default user's group/span>/span>br>span classline>span classcomment>; will be used./span>/span>br>span classline>span classattr>user/span> www-data/span>br>span classline>span classattr>group/span> www-data/span>br>span classline>/span>br>span classline>span classcomment>; The address on which to accept FastCGI requests./span>/span>br>span classline>span classcomment>; Valid syntaxes are:/span>/span>br>span classline>span classcomment>; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on/span>/span>br>span classline>span classcomment>; a specific port;/span>/span>br>span classline>span classcomment>; 'port' - to listen on a TCP socket to all addresses on a/span>/span>br>span classline>span classcomment>; specific port;/span>/span>br>span classline>span classcomment>; '/path/to/unix/socket' - to listen on a unix socket./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>listen/span> span classnumber>0.0/span>.span classnumber>0.0/span>:span classnumber>9000/span>/span>br>span classline>/span>br>span classline>span classcomment>; Choose how the process manager will control the number of child processes./span>/span>br>span classline>span classcomment>; Possible Values:/span>/span>br>span classline>span classcomment>; static - a fixed number (pm.max_children) of child processes;/span>/span>br>span classline>span classcomment>; dynamic - the number of child processes are set dynamically based on the/span>/span>br>span classline>span classcomment>; following directives. With this process management, there will be/span>/span>br>span classline>span classcomment>; always at least 1 children./span>/span>br>span classline>span classcomment>; pm.max_children - the maximum number of children that can/span>/span>br>span classline>span classcomment>; be alive at the same time./span>/span>br>span classline>span classcomment>; pm.start_servers - the number of children created on startup./span>/span>br>span classline>span classcomment>; pm.min_spare_servers - the minimum number of children in 'idle'/span>/span>br>span classline>span classcomment>; state (waiting to process). If the number/span>/span>br>span classline>span classcomment>; of 'idle' processes is less than this/span>/span>br>span classline>span classcomment>; number then some children will be created./span>/span>br>span classline>span classcomment>; pm.max_spare_servers - the maximum number of children in 'idle'/span>/span>br>span classline>span classcomment>; state (waiting to process). If the number/span>/span>br>span classline>span classcomment>; of 'idle' processes is greater than this/span>/span>br>span classline>span classcomment>; number then some children will be killed./span>/span>br>span classline>span classcomment>; ondemand - no children are created at startup. Children will be forked when/span>/span>br>span classline>span classcomment>; new requests will connect. The following parameter are used:/span>/span>br>span classline>span classcomment>; pm.max_children - the maximum number of children that/span>/span>br>span classline>span classcomment>; can be alive at the same time./span>/span>br>span classline>span classcomment>; pm.process_idle_timeout - The number of seconds after which/span>/span>br>span classline>span classcomment>; an idle process will be killed./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>pm/span> dynamic/span>br>span classline>/span>br>span classline>span classcomment>; The number of child processes to be created when pm is set to 'static' and the/span>/span>br>span classline>span classcomment>; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'./span>/span>br>span classline>span classcomment>; This value sets the limit on the number of simultaneous requests that will be/span>/span>br>span classline>span classcomment>; served. Equivalent to the ApacheMaxClients directive with mpm_prefork./span>/span>br>span classline>span classcomment>; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP/span>/span>br>span classline>span classcomment>; CGI. The below defaults are based on a server without much resources. Don't/span>/span>br>span classline>span classcomment>; forget to tweak pm.* to fit your needs./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used when pm is set to 'static', 'dynamic' or 'ondemand'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> This value is mandatory./span>/span>br>span classline>span classattr>pm.max_children/span> span classnumber>20/span>/span>br>span classline>/span>br>span classline>span classcomment>; The number of child processes created on startup./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2/span>/span>br>span classline>span classattr>pm.start_servers/span> span classnumber>2/span>/span>br>span classline>/span>br>span classline>span classcomment>; The desired minimum number of idle server processes./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Mandatory when pm is set to 'dynamic'/span>/span>br>span classline>span classattr>pm.min_spare_servers/span> span classnumber>1/span>/span>br>span classline>/span>br>span classline>span classcomment>; The desired maximum number of idle server processes./span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Used only when pm is set to 'dynamic'/span>/span>br>span classline>span classcomment>; span classdoctag>Note:/span> Mandatory when pm is set to 'dynamic'/span>/span>br>span classline>span classattr>pm.max_spare_servers/span> span classnumber>3/span>/span>br>span classline>/span>br>span classline>span classcomment>;---------------------/span>/span>br>span classline>/span>br>span classline>span classcomment>; Make specific Docker environment variables available to PHP/span>/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_DATABASE/span> $DB_1_ENV_MYSQL_DATABASE/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_USER/span> $DB_1_ENV_MYSQL_USER/span>br>span classline>envspan classsection>DB_1_ENV_MYSQL_PASSWORD/span> $DB_1_ENV_MYSQL_PASSWORD/span>br>span classline>/span>br>span classline>span classattr>catch_workers_output/span> span classliteral>yes/span>/span>br>/pre>/td>/tr>/table>/figure>p>然而…/p>p>php-fpm 一启动就报错/p>figure classhighlight accesslog>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>/pre>/td>td classcode>pre>span classline>root@8ddf4ad1d3b6:/usr/local/etc/php-fpm.d# php-fpm/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: span classstring>/usr/local/etc/php-fpm.d/applll.pool.conf:4/span> unknown entry 'user'/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: Unable to include /usr/local/etc/php-fpm.d/applll.pool.conf from /usr/local/etc/php-fpm.conf at line span classnumber>4/span>/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: failed to load configuration file '/usr/local/etc/php-fpm.conf'/span>br>span classline>span classstring>05-Jul-2016 08:36:34/span> ERROR: FPM initialization failed/span>br>/pre>/td>/tr>/table>/figure>p>研究了好几个钟头无果/p>p>瞎弄的时候把 code>app.pool.conf/code> 重命名成了 code>aaa.pool.conf/code>/p>p>神奇的发现, php-fpm 正常了/p>figure classhighlight accesslog>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>root@8ddf4ad1d3b6:/usr/local/etc/php-fpm.d# php-fpm/span>br>span classline>span classstring>05-Jul-2016 08:34:07/span> NOTICE: fpm is running, pid span classnumber>188/span>/span>br>span classline>span classstring>05-Jul-2016 08:34:07/span> NOTICE: ready to handle connections/span>br>/pre>/td>/tr>/table>/figure>p>然后测试了几个文件名,发现只要是 code>app/code> 打头,都会造成 php-fpm 抽筋…目测是撞上了什么奇怪的规则/p>p>然而我 Google 搜了好久都没发现有人报告这个问题…_(:3」∠)_/p>p>嘛,自己记录一下吧./p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/>Laravel 在极高的瞬间并发时出现的问题/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2016-01-17T06:36:00.000Z>2016-01-17 small>14:36/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>又踩了了一个坑/p>p>之前曾经出现过 laravel 在极高的瞬间并发的时候,会出现session状态丢失的问题。原因是laravel中,session默认储存在文件系统,在瞬间并发时,可能由于文件系统io的原因,导致session文件读写失败,进而造成session丢失。/p>p>这个问题我当时是直接把session存放在cookie或者数据库中解决了。/p>p>然而今天又出现了新状况,也是瞬间高并发的锅。/p>img src/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/20160117221844.jpg class>p>如图,这是在ngjs下的一个并发上传的控件,会同时并发上传选择的文件,且在上传前会并发请求以查询文件是否已上传,以完成续传功能。/p>p>1秒内大概有15个并发连接/p>p>在这几个并发连接中,有部分会发生错误,扔我一脸500/p>img src/2016/01/17/laravel%E5%9C%A8%E6%9E%81%E9%AB%98%E7%9A%84%E7%9E%AC%E9%97%B4%E5%B9%B6%E5%8F%91%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/20160117222400.jpg class>p>具体报错是^/p>p>然而,我明显没设错mysql账号密码啦/p>p>而且我.env文件中数据库相关的设置是:/p>figure classhighlight ini>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>/pre>/td>td classcode>pre>span classline>span classattr>DB_HOST/span>localhost/span>br>span classline>span classattr>DB_DATABASE/span>amaoto-core/span>br>span classline>span classattr>DB_USERNAME/span>root/span>br>span classline>DB_PASSWORD/span>br>/pre>/td>/tr>/table>/figure>p>然而报错是说我用了forge作为用户名连接mysql/p>p>等等,forge好熟悉啊/p>p>这货不就是laravel配置文件中的连mysql的默认用户名咩/p>p>检查config/database.php/p>figure classhighlight php>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>span classline>4/span>br>span classline>5/span>br>span classline>6/span>br>span classline>7/span>br>span classline>8/span>br>span classline>9/span>br>span classline>10/span>br>span classline>11/span>br>/pre>/td>td classcode>pre>span classline>span classstring>'mysql'/span> > /span>br>span classline> span classstring>'driver'/span> > span classstring>'mysql'/span>,/span>br>span classline> span classstring>'host'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_HOST'/span>, span classstring>'localhost'/span>),/span>br>span classline> span classstring>'database'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_DATABASE'/span>, span classstring>'forge'/span>),/span>br>span classline> span classstring>'username'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_USERNAME'/span>, span classstring>'forge'/span>),/span>br>span classline> span classstring>'password'/span> > span classtitle function_ invoke__>env/span>(span classstring>'DB_PASSWORD'/span>, span classstring>''/span>),/span>br>span classline> span classstring>'charset'/span> > span classstring>'utf8'/span>,/span>br>span classline> span classstring>'collation'/span> > span classstring>'utf8_unicode_ci'/span>,/span>br>span classline> span classstring>'prefix'/span> > span classstring>''/span>,/span>br>span classline> span classstring>'strict'/span> > span classliteral>false/span>,/span>br>span classline> ,/span>br>/pre>/td>/tr>/table>/figure>p>果然/p>p>也就是说,code>env('DB_USERNAME', 'forge')/code> 没能成功读取code>.env/code>文件/p>p>参考之前session状态丢失的解决方法,那就不读取.env咯/p>p>然而不用code>.env/code>的话,把数据库账密写在code>config/database.php/code>也不科学/p>p>于是翻了翻文档/p>p>发现code>artisan/code>指令:code>config:cache/code> 可缓存配置文件/p>p>马上执行试试,重新测试一看,完美解决。/p>p>嘛,所以难得的更新了blog做个笔记ww/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/>修复 Windows 10 中损坏的 Appx 应用/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2015-08-28T08:14:43.000Z>2015-08-28 small>16:14/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> div classarticle-tag> i classicon tags title文章标签>/i> a classarticle-tag-none-link href/tags/win10/ reltag>win10/a> /div> /div> div classarticle-entry> p>前段时间手贱把 Surface Pro 3 的 系统升级到了 Windows Indsider Fast Ring 通道的 10525 版本,然后发现 a target_blank relnoopener hrefhttps://www.google.com/intl/zh-CN/chrome/browser/desktop/index.html>Chrome/a> 和 a hrefvirtualbox.org>Virtual Box/a> 都出现了兼容性问题,估计是新的内存管理机制的锅。/p>p>因为工作需要用到 Vagrant,a target_blank relnoopener hrefhttp://virtualbox.org/>Virtual Box/a> 不能用简直不能忍,于是我滚回到了10240/p>p>然而没想到回滚完成后,好几个 Appx 应用都出问题了,应用名显示为 code>@{microsoft.windowscommunicationsapps_17.6120.42011.0_x64__8wekyb3d8bbwe}/code> 类似这样的形式。/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/000.jpg class>p>出问题的应用分别为 Edge、日历与邮件、应用商店、Cortana,其中 Edge 和 Cortana 只是名字没了Icon没了,商店则是变成了英文菜单,日历与邮件则是直接打开不能、更新不能、卸载不能、完全拿他没办法。/p>p>强行忍了一个多星期,实在受不了,于是昨天抽时间出来终于把这问题解决了,写下来记录下步骤 del>顺便给blog填点东西/del>/p>hr>p>首先,祭出最基本的 code>wsreset/code> 大法,管理员运行,然而并没有什么卵用/p>p>试着跑了下系统自带的code>疑难解答/code>,然而它提示说……/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/001.jpg class>p>|д゚)/p>p>好咯,还是要自己动手/p>p>既然系统搞不定,那就自己来研究吧/p>p>管理员身份打开 code>Powershell/code>,把所有包重新注册一遍/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppXPackage/span> | span classkeyword>Foreach/span> {span classbuilt_in>Add-AppxPackage/span> span classliteral>-DisableDevelopmentMode/span> span classliteral>-Register/span> span classstring>"span classvariable>$/span>(span classvariable>$_/span>.InstallLocation)\AppXManifest.xml"/span>}/span>br>/pre>/td>/tr>/table>/figure>p>坐等了大概一分钟,跑完了/p>p>跑完瞬间发现,Edge恢复正常了,那写坏掉的应用名也恢复正常了!/p>p>然而还是有两个坏掉的图标……/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/002.jpg class>p>日历与邮件还是不行_(:3」∠)_/p>p>瞄了一眼 Powershell,发现有报错/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/003.jpg class>p>咦,code>C:\/code> 在C盘根目录找是什么鬼/p>p>输出一下包信息看一下先:/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> microsoft.windowscommunicationsapps*/span>br>/pre>/td>/tr>/table>/figure>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/004.jpg class>p>妈了个鸡,为何 InstallLocation 不见了……/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>cd/span> span classstring>"C:\Program Files\WindowsApps\"/span>/span>br>span classline>span classbuilt_in>ls/span>/span>br>/pre>/td>/tr>/table>/figure>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/005.jpg class>p>妈了个蛋,还真没了这个文件夹……/p>p>存在的文件是 code>42011/code> 然而包信息里面的是 code>42001/code>/p>p>好吧,估计这个就是问题所在了……/p>p>试试移除掉这个包咯/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> *microsoft.windowscommunicationsapps* | span classbuilt_in>Remove-AppxPackage/span>/span>br>/pre>/td>/tr>/table>/figure>p>然而并没有用,还是读的根目录/p>p>想了想,既然只会读根目录,那我就把 42011 的 AppXManifest.xml 扔在 C: 根目录总能读到了吧?/p>p>于是把整个 42011 的所有文件复制一份扔在根目录/p>p>然后试着:/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Add-AppxPackage/span> span classliteral>-register/span> span classstring>"C:\AppxManifest.xml"/span> –DisableDevelopmentMode/span>br>/pre>/td>/tr>/table>/figure>p>有反应!但是依然是报错信息,说在 code>C:\ProgramData\Microsoft\Windows\AppRepository/code> 里面找不到对应的xml/p>p>那我就复制一份进去咯/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>xcopy span classstring>'C:\AppxManifest.xml'/span> microsoft.windowscommunicationsapps_17.span classnumber>6106.42001/span>.span classnumber>0/span>_x64__8wekyb3d8bbwe.xml/span>br>/pre>/td>/tr>/table>/figure>p>再试试看!/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Add-AppxPackage/span> span classliteral>-register/span> span classstring>"C:\AppxManifest.xml"/span> –DisableDevelopmentMode/span>br>/pre>/td>/tr>/table>/figure>p>nice!成功运行!/p>p>打开开始菜单看看,邮件恢复了!/p>p>为了防止出现各种奇怪的问题,先把包砍了再从商店装一遍吧/p>p>然而并不能在GUI下直接卸载,那就老方法/p>figure classhighlight ps>table>tr>td classgutter>pre>span classline>1/span>br>/pre>/td>td classcode>pre>span classline>span classbuilt_in>Get-AppxPackage/span> *microsoft.windowscommunicationsapps* | span classbuilt_in>Remove-AppxPackage/span>/span>br>/pre>/td>/tr>/table>/figure>p>ok,卸掉/p>p>然后商店重新安装/p>img src/2015/08/28/%E4%BF%AE%E5%A4%8Dwindows10%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84appx%E5%BA%94%E7%94%A8/006.jpg class>p>搞定 (´・ω・`)/p> /div> /div> footer classarticle-footer> /footer>/article> article classarticle article-type-post article-index > header classarticle-header> h1 classtitle> a href/2015/02/17/homestead2.0.9%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9D%91/>Homestead 2.0.9 的一个坑/a> /h1> /header> div classarticle-inner> div classarticle-meta> div classarticle-date> i classicon calendar title发布时间>/i> time datetime2015-02-17T01:55:00.000Z>2015-02-17 small>09:55/small> /time> /div> div classarticle-category> i classicon book title文章分类>/i> a classarticle-category-link href/categories/%E5%BC%80%E5%8F%91/>开发/a> /div> /div> div classarticle-entry> p>整个下午都在调戏 a target_blank relnoopener hrefhttp://laravel.com/docs/5.0>Laravel 5/a> 和 a target_blank relnoopener hrefhttp://laravel.com/docs/5.0/homestead>Homestead/a>,然后掉坑里了……记录一下/p>p>Homestead.yaml 配置文件中,folders列,如果要设置为当前路径,不能够这样:/p>figure classhighlight yaml>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classattr>folders:/span>/span>br>span classline> span classbullet>-/span> span classattr>map:/span> span classstring>./span>/span>br>span classline> span classattr>to:/span> span classstring>/home/vagrant/your-dir/span>/span>br>/pre>/td>/tr>/table>/figure>p>而是要这样:/p>figure classhighlight yaml>table>tr>td classgutter>pre>span classline>1/span>br>span classline>2/span>br>span classline>3/span>br>/pre>/td>td classcode>pre>span classline>span classattr>folders:/span>/span>br>span classline> span classbullet>-/span> span classattr>map:/span> span classstring>.//span>/span>br>span classline> span classattr>to:/span> span classstring>/home/vagrant/your-dir/span>/span>br>/pre>/td>/tr>/table>/figure>p>就因为这尼玛的少了个斜杠 code>//code>, code>/vagrant/code> 一直mount不了……/p> /div> /div> footer classarticle-footer> /footer>/article> /div>div classright-side> div classright-side-assistance> a target_blank relnoopener hrefhttp://www.favo-soft.jp>img srchttp://www.favo-soft.jp/soft/product/sakura/banner/banner_l_kuro.jpg altさくら、もゆ。-as the Night's, Reincarnation- 応援中!!>/a> a target_blank relnoopener hrefhttp://www.favo-soft.jp>img srchttp://www.favo-soft.jp/soft/product/sakura/banner/banner_l_haru.jpg altさくら、もゆ。-as the Night's, Reincarnation- 応援中!!>/a> a target_blank relnoopener hrefhttp://www.eukleia.co.jp/eushully/>img srchttp://www.eukleia.co.jp/eushully/eu19/banner/banner_eu19lb.jpg alt「封緘のグラセスタ」応援中!>/a> a target_blank relnoopener hrefhttps://www.lumpofsugar.co.jp/product/yorikure/>img srchttps://www.lumpofsugar.co.jp/product/yorikure/campaign/images/bn/150_650a.jpg alt『縁りて此の葉は紅に』2018年1月26日発売予定!>/a> a target_blank relnoopener hrefhttps://www.lumpofsugar.co.jp/product/yorikure/>img srchttps://www.lumpofsugar.co.jp/product/yorikure/campaign/images/bn/150_650c.jpg alt『縁りて此の葉は紅に』2018年1月26日発売予定!>/a> /div>/div> /div> div classsite-footer> Copyright © 2015-2023 Lialosiu All Rights Reserved. Powered by a hrefhttps://hexo.io/ target_blank>Hexo/a>. Hosted on a hrefhttps://pages.github.com/ target_blank>GitHub Pages/a>./div>/div>/body>script srchttps://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js integritysha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8 crossoriginanonymous>/script>script srchttps://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.min.js integritysha256-1Q2q5hg2YXp9fYlM++sIEXOcUb8BRSDUsQ1zXvLBqmA crossoriginanonymous>/script>script srchttps://cdn.jsdelivr.net/npm/jquery-parallax.js@1.5.0/parallax.min.js integritysha256-cNb9ArVGKhXkedowZK9xRxCpr6qqck5JvCAsuMzJlPw crossoriginanonymous>/script>script async srchttps://platform.twitter.com/widgets.js charsetutf-8>/script>script src/js/app.js>/script>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]