鍍金池/ 問答/ Linux問答
蝶戀花 回答

命令 id 可打印當(dāng)前登錄用戶的群組信息,
id <username>是從數(shù)據(jù)庫中查詢該用戶的群組信息。

當(dāng)兩者的結(jié)果不一致時(shí),你需要重新登錄以更新群組信息。

久舊酒 回答

已解決
是舊郵箱輸?shù)貌粚?/p>

圖片描述

安于心 回答

擴(kuò)展包有問題,你換個(gè)版本吧

故人嘆 回答

taskkill 這個(gè)命令可以攜帶進(jìn)程id這個(gè)參數(shù),不知道你是怎么調(diào)用這個(gè)命令的會(huì)出現(xiàn)找不到進(jìn)程?題主可以嘗試下查找tomcat的進(jìn)程id并殺掉。
另外假死很有可能是出現(xiàn)了如下一些問題:1、數(shù)據(jù)庫連接池被耗盡,導(dǎo)致獲取連接一直等待,實(shí)際屬于死鎖 2、因?yàn)槟承┱埱髮?dǎo)致請求線程被占用無法釋放,實(shí)際也是死鎖,出現(xiàn)死鎖可以使用jstack看看線程都卡在哪里。
參考這里:https://blog.csdn.net/wanglha...

冷咖啡 回答

hmac 本身是一套算法(這套算法要用到一個(gè)哈希算法,你可以指定,你代碼中指定的是 sha256)。
你算 hmac ,和算 sha256 本身就是兩回事,結(jié)果當(dāng)然不一樣了。

第二個(gè) j 是按需求做的,不過沒看到里面有“簽名串”數(shù)據(jù)。

柒槿年 回答

你為什么 把 phpmyadmin 和 wp 放在同一個(gè)目錄?

sudo lnmp vhost del

刪除你的域名

sudo lnmp vhost add

然后重新添加就行

或者修改你的 domain.conf 里面的 root 為你 wp 的目錄,完了重啟下 nginx

怣人 回答

正確的配置:

    location /git/ {
        index  index.html;
        alias  /data/learnGitBranching/;
        autoindex on;
    }

直接看官方文檔就行:
https://nginx.org/r/location
https://nginx.org/r/root
https://nginx.org/r/alias

若相惜 回答

你這個(gè)問題太大了,硬件方面,我就不多說了,比如memcache及redis等NOSQL數(shù)據(jù)庫,對內(nèi)存要求都比較高,redis如果使用ssd的硬盤肯定比sas盤好多了。關(guān)于你說的網(wǎng)絡(luò)延遲和抵用應(yīng)用程序:我這里拿redis舉例了:
當(dāng)用戶連接到Redis通過TCP/IP連接或Unix域連接,千兆網(wǎng)絡(luò)的典型延遲可能達(dá)到200us,而Unix域socket可能低到30us,當(dāng)然這個(gè)跟你的硬件網(wǎng)卡有關(guān)系的,而且redis的屬于典型的C/S架構(gòu),調(diào)用Redis時(shí),通常是以發(fā)送-應(yīng)答-再發(fā)送-再應(yīng)答的模式進(jìn)行的,而每一次發(fā)送與應(yīng)答,都需要數(shù)據(jù)從客戶端到服務(wù)端飛一次,當(dāng)需要使用Redis處理多個(gè)命令時(shí),這樣時(shí)間都消耗到網(wǎng)絡(luò)延遲上可能就不劃算了,當(dāng)然也可以對redis進(jìn)行優(yōu)化緩解網(wǎng)絡(luò)延遲問題,所有的不管是關(guān)系型數(shù)據(jù)庫還是nosql數(shù)據(jù)庫肯定都與調(diào)用該數(shù)據(jù)庫的程序有關(guān)系,比如大批量的查,大批量的寫等這些操作都會(huì)對數(shù)據(jù)庫帶來壓力。畢竟數(shù)據(jù)庫是這個(gè)服務(wù)的瓶頸,這個(gè)目前好的辦法是在數(shù)據(jù)庫前加緩存,對數(shù)據(jù)庫實(shí)現(xiàn)讀寫分離,同時(shí)拆庫優(yōu)化。這里我只描述redis,其他的nosql數(shù)據(jù)庫不太了解,不敢亂說。

維他命 回答

因?yàn)?code>webpack打包輸出的manifest中文件引用是/static的絕對路徑,然后你的html文件路由并不是在根目錄下,會(huì)導(dǎo)致引用錯(cuò)誤。

修改config文件夾中配置文件index.jsbuild對象的assetsPublicPath字段改為''。
config/index.js

// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
  build: {
    env: require('./prod.env'),
    index: path.resolve(__dirname, '../dist/index.html'),
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '', // 此處原為'/'
    productionSourceMap: true,
    // Gzip off by default as many popular static hosts such as
    // Surge or Netlify already gzip all static assets for you.
    // Before setting to `true`, make sure to:
    // npm install --save-dev compression-webpack-plugin
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    // Run the build command with an extra argument to
    // View the bundle analyzer report after build finishes:
    // `npm run build --report`
    // Set to `true` or `false` to always turn it on or off
    bundleAnalyzerReport: process.env.npm_config_report
  },
  dev: {
    env: require('./dev.env'),
    port: 8080,
    autoOpenBrowser: true,
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {},
    // CSS Sourcemaps off by default because relative paths are "buggy"
    // with this option, according to the CSS-Loader README
    // (https://github.com/webpack/css-loader#sourcemaps)
    // In our experience, they generally work as expected,
    // just be aware of this issue when enabling this option.
    cssSourceMap: false
  }
}
傻叼 回答

在terminal的設(shè)置里,把declare terminal 這個(gè)選項(xiàng)修改下:

clipboard.png

通常改為rxvt或者vt102可以修復(fù)這個(gè)問題

萌吟 回答

你是問二維碼怎么生成嗎?
百度qrcode.js
https://github.com/davidshimj...

var qrcode = new QRCode("test", {
    text: "http://www.runoob.com",
    width: 128,
    height: 128,
    colorDark : "#000000",
    colorLight : "#ffffff",
    correctLevel : QRCode.CorrectLevel.H
});

nginx 有個(gè)location配置項(xiàng)配置index , 它會(huì)自動(dòng)找你寫的文件名稱 可以把a(bǔ)rticle加上就好,不需要rewirte

舊城人 回答

最好還是調(diào)查清楚,什么運(yùn)行時(shí)間長了就卡,是不是打開文件句柄太多了,還是內(nèi)存滿了。