最新穩定版:
wget -qo- | bash
開發版:
wget -qo- | bash -s dev
error: failed to download chromium r549031! set "puppeteer_skip_chromium_download" env variable to skip download.
npm warn [email protected] no license field.
解決:需要切換國內npm源,重新執行下/bin/countly.install.sh即可.
(也可在執行過程中當nodejs安裝後執行此命令,可防止報錯)
npm install -g cnpm --registry=
cnpm i puppeteer
nodejs可能一開始連線不上mongodb,這屬於正常現象,原因在於 mongodb 需要一段時間為 countly 資料庫預分配檔案。如出現此錯誤,只需在稍等,如果實在不行,重新執行下/bin/countly.install.sh即可。
loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
package sendmail-8.14.7-5.el7.x86_64 already installed and latest version
nothing to do
redirecting to /bin/systemctl start sendmail.service
/usr/bin/grunt -> /usr/lib/node_modules/grunt-cli/bin/grunt
updated 1 package in 16.697s
> [email protected] install /opt/countly/node_modules/puppeteer
> node install.js
卡死在這裡很久,解除安裝nodejs
yum remove nodejs npm -y
重新執行下/bin/countly.install.sh
coutly:dash(6001)起來了,countly:api(3001)沒起來
npm rebuild
grunt dist-all
running "locales" task
preparing locale files for core & plugins: ["mobile","web","desktop","plugins","density","locale","browser","sources","views","enterpriseinfo","logger","systemlogs","errorlogs","populator","reports","crashes","push","star-rating","slipping-away-users","compare","server-stats","dbviewer","assistant","plugin-upload","times-of-day","compliance-hub","video-intelligence-monetization","alerts","onboarding","echartmap"]
done preparing locale files
running "concat:locales_" (concat) task
running "concat:locales_ar" (concat) task
running "concat:locales_bs" (concat) task
running "concat:locales_ca" (concat) task
running "concat:locales_de" (concat) task
running "concat:locales_el" (concat) task
running "concat:locales_es" (concat) task
running "concat:locales_et" (concat) task
running "concat:locales_fa" (concat) task
running "concat:locales_fr" (concat) task
running "concat:locales_hi" (concat) task
running "concat:locales_hu" (concat) task
running "concat:locales_it" (concat) task
running "concat:locales_ja" (concat) task
running "concat:locales_ko" (concat) task
running "concat:locales_lv" (concat) task
running "concat:locales_my" (concat) task
running "concat:locales_nb" (concat) task
running "concat:locales_nl" (concat) task
running "concat:locales_pt" (concat) task
running "concat:locales_ro" (concat) task
running "concat:locales_ru" (concat) task
running "concat:locales_sl" (concat) task
running "concat:locales_sv" (concat) task
running "concat:locales_tr" (concat) task
running "concat:locales_vi" (concat) task
running "concat:locales_zh" (concat) task
running "concat:locales_pl" (concat) task
done.
驗證:* countly.service - countly-supervisor
常用命令:
• countly start: 啟動 countly 程序
• countly stop: 停止 countly 執行
• countly restart: 重啟 countly
• countly status: 輸出程序狀態,輸出與初始化系統型別有關
• countly upgrade: 開始更新操作
• countly usage: 列印使用資訊
• countly version: 顯示 countly 版本
• countly test: 執行 countly 測試裝置
• countly dir: 輸出到 countly 安裝目錄的絕對路徑
資料抓取之requests總結
python 爬蟲之requests總結 requests 讓http服務人類 requests唯一的乙個非轉基因的python http庫,人類可以安全享用 requests繼承了urllib2的所有特性。requests支援http連線保持和連線池,支援使用cookie保持會話,支援檔案上傳,支...
資料抓取的
總結 在抓資料的時候 尤其是資料多的時候 幾百頁的上萬條資料 先抓主資料列表資料在根據主表抓詳情 1.要有日誌記錄 記錄總條數 log日誌表 第一頁記錄總條數寫入日誌表,確定迴圈多少次 2.回來的資料入庫的時候做好把頁數page也帶上 萬一資料抓取過程中中斷的時候接著抓 就沒必要抓取全部了 3.詳情...
iOS 資料的儲存和讀取之歸檔
歸檔四一種很常見的檔案儲存方法,幾乎任何型別的物件都能夠被歸檔儲存 實際上是一種檔案儲存形式 使用nskeyedarichiver進行歸檔,用nskeyedunarichiver進行解歸檔。這種方式會在寫入 讀出資料之前堆資料進行序列化 反序列化操作。一,簡單歸檔 archiverootobject...