{"id":511239,"date":"2021-06-30T20:04:51","date_gmt":"2021-06-30T12:04:51","guid":{"rendered":"http:\/\/4563.org\/?p=511239"},"modified":"2021-06-30T20:04:51","modified_gmt":"2021-06-30T12:04:51","slug":"%e8%85%be%e8%ae%af%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%ba%e5%9b%be%e5%ba%8a%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=511239","title":{"rendered":"\u817e\u8baf\u4e91\u670d\u52a1\u5668\u642d\u5efa\u56fe\u5e8a\u7f51\u7ad9"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>jim123456<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u817e\u8baf\u4e91\u670d\u52a1\u5668\u642d\u5efa\u56fe\u5e8a\u7f51\u7ad9<\/h3>\n<p>  \t\t0x01\u5e94\u7528\u7b80\u4ecb<br \/>  \u6b64\u9879\u76ee\u91c7\u7528:Go\u8bed\u8a00\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684\u670d\u52a1\u5668\u6709\u6b64\u73af\u5883<br \/>  \u56fe\u5e8a\u5c31\u662f\u56fe\u7247\u5728\u7ebf\u5b58\u50a8\u670d\u52a1\u5668 \u4e3b\u8981\u53ef\u4ee5\u65b9\u4fbf\u5feb\u901f\u7684\u6d4f\u89c8\u56fe\u7247<br \/>  0x02\u670d\u52a1\u5668\u51c6\u5907<br \/>  \u670d\u52a1\u5668\u7684\u9009\u62e9\u4e0a\uff0c\u5f53\u7136\u662f\u672c\u6587\u7684\u4e3b\u89d2\uff1a\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\uff08Lighthouse\uff09\u3002\u8fd9\u662f\u76ee\u524d\u6700\u5feb\u7684\u5efa\u7ad9\u65b9\u5f0f\uff0c\u6211\u4eec\u5f00\u59cb\u4e0a\u8def\u5427\uff5e<br \/>  \u76ee\u524d\u817e\u8baf\u4e91\u6700\u6d41\u884c\u7684IaaS\u5c42\u4ea7\u54c1\u83ab\u8fc7\u4e8eLighthouse\uff08\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\uff09\u4e86\u3002\u8be5\u4ea7\u54c1\u4ee5\u5957\u9910\u5f62\u5f0f\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u4e91\u4e3b\u673a\u9009\u8d2d\uff0c\u7f51\u7edc\u6d41\u91cf\u5305\u3001\u5e94\u7528\u955c\u50cf\u4ee5\u53ca\u514d\u5bc6\u767b\u5f55\u7b49\u7279\u6027\u4e5f\u66f4\u52a0\u6ce8\u91cd\u4e86\u4eba\u6027\u5316\u7684\u4f53\u9a8c\u3002Lighthouse\u4f5c\u4e3a\u76ee\u524d\u6700\u7099\u624b\u53ef\u70ed\u7684\u9762\u5411\u4e2a\u4eba\u5f00\u53d1\u8005\u53ca\u4e2d\u5c0f\u4f01\u4e1a\u7684\u65b0\u4e00\u4ee3\u4e91\u670d\u52a1\u4ea7\u54c1\uff0c\u7279\u522b\u9002\u5408\u642d\u5efa\u4e2a\u4eba\u535a\u5ba2\u3001\u7f51\u7ad9\u3001\u8bba\u575b\u3001\u5c0f\u578b\u5e94\u7528\u7b49\u591a\u79cd\u573a\u666f\u3002\u53e6\u5916\uff0c\u5176\u826f\u5fc3\u7684\u4ef7\u683c\u548c\u4fc3\u9500\u529b\u5ea6\u4e5f\u662f\u524d\u6240\u672a\u6709\uff0c\u5176\u6301\u7eed\u8fd0\u8425\u7684\u7b56\u7565\u662f\u76f8\u5bf9\u9762\u5411\u672a\u6765\u7684\u3002<br \/>  \u5883\u5916\u670d\u52a1\u5668\u4ef7\u683c\u53ca\u914d\u7f6e:<br \/>  https:\/\/www.hualigs.cn\/image\/60dc2d9085265.jpg<br \/>  \u56fd\u5185\u670d\u52a1\u5668\u4ef7\u683c\u548c\u914d\u7f6e:<br \/>  https:\/\/www.hualigs.cn\/image\/60dc2da5a5add.jpg<br \/>  0x03\u5f00\u59cb\u5b89\u88c5<br \/>  \u6ce8\u610f\u6b64\u5e94\u7528\u9700\u8981\u7528\u5230 Nginx \u548c Mysql\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684\u670d\u52a1\u5668\u662f\u5e72\u51c0\u7684<br \/>  \u25cf \u5b89\u88c5mysql<br \/>  wget http:\/\/dev.mysql.com\/get\/Downloads\/MySQL-5.6\/mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz &#8211;no-check-certificate<br \/>  tar -xvf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz<br \/>  mv mysql-5.6.31-linux-glibc2.5-x86_64\/ mysql<\/p>\n<p>  \u25cf \u6dfb\u52a0Mysql\u7528\u6237\u548c\u7528\u6237\u7ec4<br \/>  groupadd mysql<br \/>  useradd-r -g mysql mysql<\/p>\n<p>  \u25cf \u6267\u884c\u5b89\u88c5\u811a\u672c<br \/>  .\/scripts\/mysql_install_db &#8211;user=mysql<\/p>\n<p>  \u25cf \u4fee\u6539\u6743\u9650<br \/>  chown-Rroot:root .\/ <br \/>  chown-Rmysql:mysqldata<\/p>\n<p>  \u25cf \u542f\u52a8&nbsp; &nbsp; &nbsp; &nbsp; Mysql<br \/>  .\/support-files\/mysql.server start<\/p>\n<p>  \u25cf \u5b89\u88c5Nginx<br \/>  yum install nginx<\/p>\n<p>  \u25cf \u5b89\u88c5\u56fe\u5e8a\u7a0b\u5e8f<br \/>  wget -N &#8211;no-check-certificate https:\/\/raw.githubusercontent.com\/aimerforreimu\/AUXPI\/dev\/install.sh &amp;&amp; chmod +x install.sh &amp;&amp; bash install.sh install<\/p>\n<p>  \u25cf \u8fdb\u5165\u7a0b\u5e8f\u76ee\u5f55<br \/>  cd \/root\/auxpi ls -l<br \/>  ls -l<\/p>\n<p>  \u4fee\u6539\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6(\u8bf7\u8fdb\u5165\u5230\u7a0b\u5e8f\u6839\u76ee\u5f55\u4e0b\u7684conf\/\u4fee\u6539\u00a0siteConfig.json<br \/>  &quot;db_option&quot;: {&nbsp; &nbsp;&quot;use_db&quot;: true,&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;db_type&quot;: &quot;mysql&quot;,&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;db_host&quot;: &quot;127.0.0.1:3306&quot;,&nbsp; &nbsp; #\u6570\u636e\u5e93\u5730\u5740\uff0c\u6b63\u5e38\u4e0d\u9700\u8981\u4fee\u6539&nbsp; &nbsp;&quot;db_name&quot;: &quot;auxpi&quot;,&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; #\u6570\u636e\u5e93\u540d\u79f0&nbsp; &nbsp;&quot;db_user&quot;: &quot;root&quot;,&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;#\u6570\u636e\u5e93\u7528\u6237\u540d&nbsp; &nbsp;&quot;db_pass&quot;: &quot;root&quot;,&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;#\u6570\u636e\u5e93\u5bc6\u7801&nbsp; &nbsp;&quot;table_prefix&quot;: &quot;auxpi_&quot;&nbsp; &nbsp;&nbsp; &nbsp;#\u6570\u636e\u8868\u524d\u7f00\uff0c\u53ef\u4e0d\u4fee\u6539&nbsp; &nbsp;}, <\/p>\n<p>  \u25cf \u521b\u5efa\u7ba1\u7406\u5458<br \/>  .\/auxpi -mod=admin -name=hello -email=123@123.com -pass=123123123<\/p>\n<p>  \u25cf \u6267\u884c<br \/>  .\/auxpi <\/p>\n<p>  \u25cf \u4f7f\u7528Nginx\u53cd\u5411\u4ee3\u7406<br \/>  cd \/usr\/local\/nginx\/conf\/rewrite <br \/>  vim auxpi.conf<\/p>\n<p>  \u25cf \u8f93\u5165\u5185\u5bb9<br \/>  location \/ {&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  proxy_pass http:\/\/127.0.0.1:auxpi \u7684\u7aef\u53e3\u53f7;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<br \/>  proxy_set_header X-Real-IP $remote_addr;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header REMOTE-HOST $remote_addr;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  add_headerX-Frame-Options &quot;DENY&quot;;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  add_headerStrict-Transport-Security &quot;max-age=86400; includeSubDomains&quot;;&nbsp; &nbsp;<br \/>  }<\/p>\n<p>  \u25cf \u914d\u7f6eNginx<br \/>  server {&nbsp; &nbsp;listen 80;&nbsp; &nbsp;listen 443 ssl http2;&nbsp; &nbsp;ssl_certificate \/usr\/local\/openresty\/nginx\/conf\/ssl\/test.demo-1s.com.crt;&nbsp; &nbsp;ssl_certificate_key \/usr\/local\/openresty\/nginx\/conf\/ssl\/test.demo-1s.com.key;&nbsp; &nbsp;ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;&nbsp; &nbsp;ssl_ciphers TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;&nbsp; &nbsp;ssl_prefer_server_ciphers on;&nbsp; &nbsp;ssl_session_timeout 10m;&nbsp; &nbsp;ssl_session_cache builtin:1000 shared:SSL:10m;&nbsp; &nbsp;ssl_buffer_size 1400;&nbsp; &nbsp;add_header Strict-Transport-Security max-age=15768000;&nbsp; &nbsp;ssl_stapling on;&nbsp; &nbsp;ssl_stapling_verify on;&nbsp; &nbsp;server_name test.demo-1s.com;&nbsp; &nbsp;access_log \/data\/wwwlogs\/test.demo-1s.com_nginx.log combined;&nbsp; &nbsp;index index.html index.htm index.php;&nbsp; &nbsp;root \/data\/wwwroot\/test.demo-1s.com;&nbsp; &nbsp;if ($ssl_protocol = &quot;&quot;) { return 301 https:\/\/$host$request_uri; }&nbsp; &nbsp;# \u5f15\u5165\u6211\u4eec\u521a\u624d\u5199\u597d\u7684\u53cd\u5411\u4ee3\u7406\u7684\u89c4\u5219&nbsp; &nbsp;include \/usr\/local\/openresty\/nginx\/conf\/rewrite\/auxpi.conf;<\/p>\n<p>  \u25cf \u5982\u679c\u60f3\u8ba9\u7a0b\u5e8f\u5728\u540e\u53f0\u8fd0\u884c\u7684\u8bdd\uff0c\u9700\u8981\u5bf9\u7a0b\u5e8f\u8fdb\u884c\u6258\u7ba1\u3002auxpi \u81ea\u5e26\u4e00\u4e2a\u63a7\u5236\u811a\u672c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ed6\u8fdb\u7a0b\u7a0b\u5e8f\u7684\u6258\u7ba1<br \/>  chmod -u+x manager.sh <br \/>  bash manager.sh start<\/p>\n<p>  \u25cf \u8fd0\u884c<br \/>  .\/auxpi run<\/p>\n<p>  0x04\u5e94\u7528\u5c55\u793a<br \/>  https:\/\/www.hualigs.cn\/image\/60dc2db102006.jpg<\/p>\n<p>  \t\t\t\t\t<strong>ygvm.com<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u81ea\u5df1\u5199\u7684\u56fe\u5e8a\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>micms<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8c22\u8c22\u5206\u4eab\u4e2a\u4eba\u7528\u662f\u4e0d\u9519https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u672c\u4eba\u9a6c\u4fdd\u56fd<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u6559\u7a0b \u8f6c\u8f7d\u4e86https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jim123456<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5e0c\u671b\u5927\u5bb6\u559c\u6b22 \u5982\u679c\u89c9\u5f97\u597d\u7684\u8bdd\u628a\u8fd9\u4e2a\u94fe\u63a5\u53ef\u4ee5\u53d1\u7ed9\u522b\u4eba\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jim123456<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u60dc\u4e3a\u4f0a\u4eba\u9189<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u6280\u672f\u8d34\uff01\uff01yc017t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>fule<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5144\u5f1f\u4eec\u51b2\u8d77\u6765,\u5e2e\u4f60\u9876\u5e16\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>jim123456 \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/511239"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=511239"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/511239\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=511239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=511239"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=511239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}