在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ Linux問答
刮刮樂 回答

不一定??赡懿皇沁B續(xù)的。因為有分頁映射到物理地址,所以最多一個內(nèi)存頁內(nèi)部連續(xù),頁和頁之間可以不連續(xù)。

艷骨 回答

94行的$放回到{}里面引用network就沒有報錯。
修改如下:
94 if [ {$NETWORKING} = "no" ]

萌二代 回答

盡量使用npm安裝

離觴 回答

ctrl+u 看一下他的源代碼,就是不包含 js 生成的源代碼,

clipboard.png

這個就是你抓取所獲取的內(nèi)容,應(yīng)該是不包含這部分的:

clipboard.png

chrome監(jiān)控到的頁面是經(jīng)過js腳本加工之后的嗎?

當(dāng)然,沒有經(jīng)過 js 修飾過得,多難用;

我在source中看了所有的js腳本,都沒有查找到相關(guān)的添加元素的腳本代碼。請問這個問題的可能原因是什么,我這樣找對嗎?

如果你前面 ctrl+u 確實證明我說的是對的話,那這段多出來的代碼就是 js 生成的,你沒有找到很正常呀,那么多代碼你一行行看了,都明白什么意思?不太可能吧

深記你 回答

你好,你用的是最新的嗎?我最近也是剛了解weex,后端寫多了頭大,我的流程是

  • 安裝依賴 node.js
  • npm install -g weex-toolkit
  • Weex init project , npm install
  • npm run serve
  • npm run dev

然后項目就正常運行了,weex playgroud也能掃碼運行

過客 回答
  1. 異步函數(shù)也是函數(shù),只是會返回一個promise對象,里面可能存在promise串聯(lián)的情況
  2. promise最適合做異步操作,讓異步操作看起來像是同步的,不然通過回掉會很麻煩,邏輯也不夠清晰
  3. 你可以完全忽略同步函數(shù)和異步函數(shù),都可以接收的,返回值是promise就等到promise完成
壞脾滊 回答

$request_uri這個變量的值不包含域名

location ~ ^/test/(.*) {
    proxy_pass http://center.szuswzx.com/center/$1;
}
夏夕 回答

Linux的管道實現(xiàn)是個環(huán)形緩沖區(qū):

/**
 *    struct pipe_buffer - a linux kernel pipe buffer
 *    @page: the page containing the data for the pipe buffer
 *    @offset: offset of data inside the @page
 *    @len: length of data inside the @page
 *    @ops: operations associated with this buffer. See @pipe_buf_operations.
 *    @flags: pipe buffer flags. See above.
 *    @private: private data owned by the ops.
 **/
struct pipe_buffer {
    struct page *page;
    unsigned int offset, len;
    const struct pipe_buf_operations *ops;
    unsigned int flags;
    unsigned long private;
};


/**
 *    struct pipe_inode_info - a linux kernel pipe
 *    @mutex: mutex protecting the whole thing
 *    @wait: reader/writer wait point in case of empty/full pipe
 *    @nrbufs: the number of non-empty pipe buffers in this pipe
 *    @buffers: total number of buffers (should be a power of 2)
 *    @curbuf: the current pipe buffer entry
 *    @tmp_page: cached released page
 *    @readers: number of current readers of this pipe
 *    @writers: number of current writers of this pipe
 *    @files: number of struct file referring this pipe (protected by ->i_lock)
 *    @waiting_writers: number of writers blocked waiting for room
 *    @r_counter: reader counter
 *    @w_counter: writer counter
 *    @fasync_readers: reader side fasync
 *    @fasync_writers: writer side fasync
 *    @bufs: the circular array of pipe buffers
 *    @user: the user who created this pipe
 **/
struct pipe_inode_info {
    struct mutex mutex;
    wait_queue_head_t wait;
    unsigned int nrbufs, curbuf, buffers;
    unsigned int readers;
    unsigned int writers;
    unsigned int files;
    unsigned int waiting_writers;
    unsigned int r_counter;
    unsigned int w_counter;
    struct page *tmp_page;
    struct fasync_struct *fasync_readers;
    struct fasync_struct *fasync_writers;
    struct pipe_buffer *bufs;
    struct user_struct *user;
};

curbuf是當(dāng)前緩存區(qū)的下標(biāo),每個緩沖區(qū)里有offset和len記錄數(shù)據(jù)寫到的位置,讀寫的時候是要修改這些信息的。

如果兩個進(jìn)程同時進(jìn)行讀或者同時進(jìn)行寫,必要會導(dǎo)致數(shù)據(jù)沖突,所以內(nèi)核會對管道上鎖(pipe_inode_info里的mutex),所以是半雙工的。

比較簡單的實現(xiàn)可以看xv6的實現(xiàn)

struct pipe {
  struct spinlock lock;
  char data[PIPESIZE];
  uint nread;     // number of bytes read
  uint nwrite;    // number of bytes written
  int readopen;   // read fd is still open
  int writeopen;  // write fd is still open
};

直接一塊連續(xù)的內(nèi)存data,用兩個數(shù)字nread、nwrite記錄讀寫數(shù),通過PIPESIZE取模得到在data上的讀寫位置,用自旋鎖保護(hù)。如果沒有鎖,兩個進(jìn)程就能同時寫數(shù)據(jù)到data和修改nwrite,數(shù)據(jù)也就沖突了,同時讀也同理。

撥弦 回答

JSBIN

你這個代碼有很大的問題,沒有考慮方向什么的


修改了一個地方

clipboard.png
你自己比對一下


補充:

clipboard.png
這個地方理應(yīng)會將其拼接成一個 "moveElement('message',200,100,10)",如果你把這個單引號去除掉,那么拼接出來就會變成"moveElement(message,200,100,10)",然后setTimeout調(diào)用的時候就會變成
new Function("moveElement(message,200,100,10)")(),這個時候message只是個沒意義的字符,也不是全局變量,于是程序就出錯了

陌如玉 回答

location = ~^/admin 是什么語法?要么精確匹配,要么正則匹配,哪有一起用的?我猜你應(yīng)該是想用 location /admin。

文檔: https://nginx.org/en/docs/htt...

近義詞 回答

xshell 只是一款終端工具,主要目的就是為了連接終端,不一定帶著很多功能,具體也沒試過

夢囈 回答

添加這個默認(rèn)請求定位

location / {

        
        #定義首頁索引文件的名稱
        index index.php index.html index.htm;   

    }

手機(jī)評論,格式見諒

青瓷 回答

pdb的p打印出的是這個字符串的”定義串“,所以這里是對的,一個斜杠變成兩個斜杠,沒問題的。如果你的命令執(zhí)行有問題,可以檢查下你下面popen相關(guān)的代碼,通常不建議用os.popen,用subprocess.popen更好一些。

枕頭人 回答

../node_modules/.bin/webpack param

在npm package.json文件中使用srcipt配置
script

webpack 參數(shù)
懶洋洋 回答

ELK吧?官方的文檔沒毛病啊我就是這么掛載的,我這里還新增了log的掛載。

- /elasticsearch/data:/usr/share/elasticsearch/data
- /elasticsearch/logs:/usr/share/elasticsearch/logs

另外可以參考docker-elk

半心人 回答

git remote -v看下push是可以同時配置到多倉庫的。

魚梓 回答

那是DNS的MX記錄決定的,只要正確配置DNS的都可以實現(xiàn)。

企業(yè)郵件系統(tǒng)最麻煩的是垃圾郵件過濾規(guī)則,搭建其實很簡單,你用postfix直接就能配置一個郵箱系統(tǒng)出來,windows server也可以裝exchange實現(xiàn)郵件服務(wù)端。再配下MX記錄就可以對外以自己的域名收發(fā)郵件了。不過暴露在互聯(lián)網(wǎng)上沒幾天就會遇到各種垃圾郵件,我以前就試過了。

或者用開源的iRedMail也可以在圖形界面上很輕松的創(chuàng)建一套郵件系統(tǒng)出來,也無需開發(fā)。

通常如無特殊需求,我都會建議直接使用郵箱服務(wù)商現(xiàn)成的服務(wù),價格也能接受,比自己搭建維護(hù)省事的多。比如騰訊免費企業(yè)郵支持50個賬號,網(wǎng)易免費企業(yè)郵支持200個賬號,基本還是夠用的。國內(nèi)企業(yè)郵收費基本都是按照賬號數(shù)量收費的。