鍍金池/ 問答/ Linux問答
傻叼 回答

本端--> 本端 . 不就是在一臺(tái)機(jī)器上嗎?
同一臺(tái)機(jī)器用mv來操作文件的移動(dòng)
把var/www/html文件夾移動(dòng)到var/www/下, mv var/www/html var/www/ .刪除release文件
var/www/html里面的php文件到某個(gè)文件下
cd var/www/html;
mv *.php 移動(dòng)到的目錄.

不同機(jī)器用scp.

離觴 回答
  1. 和docker沒什么關(guān)系
  2. 訪問都是index.php是因?yàn)閕ndex.php是入口
  3. 重寫增加不了多少負(fù)載
  4. 建議你運(yùn)行的時(shí)候看開top看復(fù)雜,如果是php-fpm復(fù)雜大,那就是php程序需要優(yōu)化了
咕嚕嚕 回答

如果是需要實(shí)現(xiàn)強(qiáng)制跳轉(zhuǎn)https的話,建議采用301返回,這被認(rèn)為是從http升級到https的最佳實(shí)踐.

 server {
    listen 80;
    server_name www.mine.com;
    //rewrite ^(.*)$ https://www.mine.com;
    return 301    https://www.mine.com;
}

具體參考wiki
https://en.wikipedia.org/wiki...

fork完,自己提交就行,不用push到原來的版本了,反正他也不維護(hù)了。你也是開源的代碼沒有商用,二次開發(fā)很正常的

墨小羽 回答

coffee-script 這個(gè)依賴包xx的改名了,哈哈哈
不影響你使用的,還有coffee-script已經(jīng)過氣了:)

澐染 回答

npm init----有package.json

心上人 回答

URI部分用encodeURI,參數(shù)部分用encodeURIComponent,這樣才是相對完美的編碼方式。

比如`https://example.com/?next=abc...`,得到的結(jié)果分別是:

encodeURI(`https://example.com/?next=abc...`):

"https://example.com/?next=abc.com/def&encoding=utf-8"

encodeURIComponent(`https://example.com/?next=abc...`):

"https%3A%2F%2Fexample.com%2F%3Fnext%3Dabc.com%2Fdef%26encoding%3Dutf-8"

encodeURI(https://example.com/?next=${encodeURIComponent('abc.com/def')}&encoding=${encodeURIComponent('utf-8')}):

"https://example.com/?next=abc.com%252Fdef&encoding=utf-8"

懶得改了,最后的 ` 自己腦補(bǔ)吧

萌小萌 回答

Alias指令是將url映射到本地的文件系統(tǒng),這樣做的好處是不用將文檔保存在documenRoot目錄下
針對圖中的情況,訪問路徑比如是 www.example.com/static/a.jpg ,其實(shí)是訪問 /var/www/.../static/a.jpg

涼薄 回答

舉個(gè)例子你之前使用node v6.10.0并有相關(guān)全局包,現(xiàn)在想使用v8.10.0:
如果你用nvm install v8.10.0安裝,v8是沒有v6相關(guān)全局包的,可以使用 --reinstall-packages-from=<version>安裝

nvm install v8.10.0 --reinstall-packages-from=v6.10.0
熟稔 回答

1、增加圖片驗(yàn)證碼。避免腳本自動(dòng)注冊。
2、同一手機(jī)號一段時(shí)間范圍內(nèi)短信發(fā)送限制,總數(shù)也得限制。
3、一個(gè)手機(jī)只能綁定一個(gè)手機(jī)號。
另外,如果你系統(tǒng)沒有邏輯漏洞的話,那幾千個(gè)都是通過手機(jī)注冊的?因?yàn)橛卸绦膨?yàn)證碼限制,不太好偽造?。?/p>

厭遇 回答

作為用vue擼了幾個(gè)項(xiàng)目的,告訴你,用vue2.0做移動(dòng)端商城完全沒問題。

忠妾 回答

怕是剛好只是這一個(gè)字符造成的--,話說直接發(fā)送html文件不也是可以的嗎

孤巷 回答

簡單說下思路

第一步,在服務(wù)器上創(chuàng)建一個(gè)git遠(yuǎn)程倉庫

cd /home/username
mkdir -p repositories/projectname.git
cd repositories/projectname.git
git init --bare .

第二步,在服務(wù)器上編寫post-receiveGit Hooks)自動(dòng)部署腳本

touch /home/username/repositories/projectname.git/hooks/post-receive
chmod +x /home/username/repositories/projectname.git/hooks/post-receive

實(shí)際可能需要更加復(fù)雜的邏輯,這里只做說明

#!/bin/bash
/usr/bin/git --work-tree=/var/www/projectname --git-dir=/home/username/repositories/projectname.git checkout -f
/home/username/.virtualenvs/virtualenvname/bin/python /home/username/.virtualenvs/virtualenvname/bin/uwsgi --reload /path/to/uwsgi.pid

備注:用戶username必須擁有/var/www/projectname目錄的讀寫權(quán)限

第三步,在本地添加遠(yuǎn)程倉庫

cd /path/to/projectdir
git remote add production username@myhostname:/home/username/repositories/projectname.git
# 本地代碼提交后,更新到遠(yuǎn)程倉庫
git push production master
# 遠(yuǎn)程倉庫接收完成后,將執(zhí)行post-receive腳本,以達(dá)到自動(dòng)化部署的目的
來守候 回答

顯卡設(shè)置造成的,試試如下命令
cd /etc/X11
sudo cp xorg.conf.failsafe xorg.conf
reboot
祝好運(yùn)。

冷眸 回答

因?yàn)檫@兩個(gè)location是同級的,匹配了其中一個(gè),另外一個(gè)就不會(huì)匹配到
所以第二個(gè)是永遠(yuǎn)匹配不到的

把第二個(gè)提到前面,并且加上第一個(gè)的完整配置。

    location ~ wp-admin/\.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_connect_timeout 600;
        fastcgi_send_timeout 600;
        fastcgi_read_timeout 600;
        fastcgi_buffer_size 64k;
        fastcgi_buffers 4 64k; 
        fastcgi_busy_buffers_size 128k;
        fastcgi_temp_file_write_size 128k;
        # fastcgi cache
        fastcgi_cache_bypass $no_cache;
        fastcgi_no_cache $no_cache;
        fastcgi_cache WORDPRESS;
        fastcgi_cache_valid 200 301 302 1d;
        add_header X-Cache "$upstream_cache_status From $host";
        fastcgi_buffering off; # Making the updates in Wordpress real time.
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_connect_timeout 600;
        fastcgi_send_timeout 600;
        fastcgi_read_timeout 600;
        fastcgi_buffer_size 64k;
        fastcgi_buffers 4 64k; 
        fastcgi_busy_buffers_size 128k;
        fastcgi_temp_file_write_size 128k;
        # fastcgi cache
        fastcgi_cache_bypass $no_cache;
        fastcgi_no_cache $no_cache;
        fastcgi_cache WORDPRESS;
        fastcgi_cache_valid 200 301 302 1d;
        add_header X-Cache "$upstream_cache_status From $host";
    }
疚幼 回答

php POST傳遞參數(shù)不會(huì)進(jìn)行自動(dòng)urldecode,GET傳參才會(huì)自動(dòng)進(jìn)行urldecode

url:decode.php?a=x%26y 在使用$_GET接收參數(shù)時(shí)
var_dump($_GET);的結(jié)果是
array (size=1)
  'a' => string 'x&y' (length=3)
初心 回答

cmd5.com
可以自己找一些字典用John 或者h(yuǎn)ashcat 進(jìn)行破解。字典可以考慮自己生存或者下載一些字典