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
  • 3月 30 週三 201609:06
  • 去除 Xfce4 + cairo-dock 桌面有一條線

Screenshot_2016-03-30_08-59-44
在 Settings -> Windows Manager Tweaks 點選 Compositor, 將 "Show shadow under docker windows" 取消即可

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

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

  • 個人分類:Linux
▲top
  • 3月 28 週一 201610:50
  • Xfce4 PrintScreen 設定

Screenshot_2016-03-28_10-49-33
Xfce4 預設 PrintScreen 並不會擷取螢幕, 需要使用 xfce4-screenshooter 指令去擷取 (GNOME 和 Windows 都可以), 但可以透過設定 xfce4-keyborad-shortcuts 去綁定, 達到一樣的功能.
 
(繼續閱讀...)
文章標籤

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

  • 個人分類:Linux
▲top
123»

個人資訊

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

熱門文章

  • (2,095)PyCharm (1) - 開啟檔案
  • (1,028)第一個wxPython程式
  • (901)RHEL 7.1 安裝 rpcapd
  • (17)MongoDB 的基本操作
  • (7)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

最新留言

    動態訂閱

    文章精選

    文章搜尋

    誰來我家

    參觀人氣

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