{"id":255995,"date":"2021-09-22T22:50:37","date_gmt":"2021-09-22T14:50:37","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=255995"},"modified":"2021-09-22T23:44:04","modified_gmt":"2021-09-22T15:44:04","slug":"linux-application-from-scratch","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=255995","title":{"rendered":"Linux Application From Scratch"},"content":{"rendered":"<p>The new wordpress platform is based on <span style=\"color: #ff0000\"><strong>Linux Application From Scratch<\/strong><\/span>.<\/p>\n<p>The mysql server, php, nginx (openresty), and all dependency, including gcc and C library, any code in User Space, are build from source code, and installed into \/opt\/local as root directory.<\/p>\n<p>The benefit of LAFS (LFS for wordpress application):<\/p>\n<p>Could be running on any linux platform, as long as same mode (x86-64),\u00a0 and support the selected basic instruction set (Sandy <em>Bridge<\/em>). The software\u00a0is binary compatible,to run it on a new linux machine, \u00a0just the copy the image to the \/opt\/local.<\/p>\n<p>Thanks to the linux kernel API backword compability,\u00a0 the kernel version have no side impacts\u00a0for most of application.<\/p>\n<p>&nbsp;<\/p>\n<p>With the help of LAFS implementation, we can build blog platform, modification blog contents locally, and push to the remote public vps with easy:<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0 Just the file level sync (rsync):<\/p>\n<p>&nbsp;<\/p>\n<p>Dev Machine\u00a0\u00a0 ==&gt;\u00a0\u00a0 Local Production Env\u00a0\u00a0 ==&gt;\u00a0\u00a0Remote Public Production Env<\/p>\n<p>\u00a0 ( Intel E3 ) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 ( Vmware ESXi ) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (VPS) \u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The new wordpress platform is based on L &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=255995\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,18,9],"tags":[60],"class_list":["post-255995","post","type-post","status-publish","format-standard","hentry","category-lfs","category-software-download","category-vps","tag-blog"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255995"}],"version-history":[{"count":5,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255995\/revisions"}],"predecessor-version":[{"id":256001,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255995\/revisions\/256001"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}