PIXNET Logo登入

wsunccake的隨手記事

跳到主文

歡迎光臨wsunccake在痞客邦的小天地

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 14 週三 202415:38
  • kernel panic - failed to execute / init

擷取
SLES 15 vm 遇到 kernel panic, 看起來 /init 有問題
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(0)

  • 個人分類:Linux
▲top
  • 3月 04 週日 201800:50
  • CentOS 上安裝 screenfetch

# 安裝
centos:~ # git clone git://github.com/KittyKatt/screenFetch.git /usr/local/screenfetch
centos:~ # cp /usr/local/screenfetch/screenfetch-dev /usr/bin/screenfetch
centos:~ # chmod +x /usr/bin/screenfetch
centos:~ # screenfetch
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(111)

  • 個人分類:Linux
▲top
  • 3月 04 週日 201800:43
  • CentOS 上安裝 cowsay

# 安裝
centos:~ # yum install fortune-mod cowsay
centos:~ # fortune | cowsay -pn
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(83)

  • 個人分類:Linux
▲top
  • 2月 26 週一 201800:20
  • MongoDB 增加 document

# 使用 insertOne, 增加一筆資料
> db.fruit.insertOne({_id: "apples", qty: 5})
# 使用 insertMany, 增加多筆資料
> db.fruit.insertMany([
  {_id: "bananas", qty: 7},
  {_id: "oranges", qty: {"in stock": 8, "ordered": 12}},
  {_id: "avocados", qty: "fourteen"}
])
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(5)

  • 個人分類:Linux
▲top
  • 2月 26 週一 201800:07
  • MongoDB 備份

# 備份
centos:~ # mongodump [-h <hostname>[:<port>]
centos:~ # ls dump            # 在執行完 mongodump 後, 會將備份資料產生 dump 資料夾
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:Linux
▲top
  • 2月 24 週六 201822:05
  • MongoDB 的基本操作

MongoDB 和 SQL 術語對照

MongoDB
SQL


database
database


collection
table


document
row

(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:Linux
▲top
  • 2月 24 週六 201821:35
  • 使用 docker 安裝 MongoDB

# 設定 repository
centos:~ # yum install epel-release
# 安裝 docker
centos:~ # yum install docker
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(1,055)

  • 個人分類:Linux
▲top
  • 2月 24 週六 201821:25
  • CentOS 7 安裝 MongoDB

# 設定 repository
centos:~ # vi /etc/yum.repos.d/mongodb-org.repo
[mongodb-org]
baseurl = https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck = 1
gpgkey = https://www.mongodb.org/static/pgp/server-3.2.asc
name = mongodb-org
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(1,187)

  • 個人分類:Linux
▲top
  • 7月 08 週六 201712:00
  • Gradle 建立 Java, Groovy application

須先安裝 Java, Groovy 和 Gradle
linux:~ # mkdir hello
linux:~ # cd hello
linux:~/hello # gradle init
linux:~/hello # mkdir -p src/main/{groovy,java}
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:
▲top
  • 6月 30 週五 201700:15
  • CentOS 以 Selenium RC 方式執行 RobotFramework

# 啟動 Xvfb, 有啟動 x window 可忽略此步驟
centos:~ # Xvfb :99 -ac -screen 0 1280x960x16 &
centos:~ # export DISPLAY=:99
(繼續閱讀...)
文章標籤

wsunccake 發表在 痞客邦 留言(0) 人氣(24)

  • 個人分類:
▲top
12...5»

個人資訊

wsunccake
暱稱:
wsunccake
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (2,094)PyCharm (1) - 開啟檔案
  • (1,027)第一個wxPython程式
  • (900)RHEL 7.1 安裝 rpcapd
  • (17)MongoDB 的基本操作
  • (6)Install Ruby 2.1.3 from srource code in Linux

文章分類

  • Linux (21)
  • Python (5)
  • MacOS (4)
  • Ruby (2)
  • 未分類文章 (1)

最新文章

  • kernel panic - failed to execute / init
  • CentOS 上安裝 screenfetch
  • CentOS 上安裝 cowsay
  • MongoDB 增加 document
  • MongoDB 備份
  • MongoDB 的基本操作
  • 使用 docker 安裝 MongoDB
  • CentOS 7 安裝 MongoDB
  • Gradle 建立 Java, Groovy application
  • CentOS 以 Selenium RC 方式執行 RobotFramework

最新留言

    動態訂閱

    文章精選

    文章搜尋

    誰來我家

    參觀人氣

    • 本日人氣:
    • 累積人氣: