- Aug 14 Wed 2024 15:38
-
kernel panic - failed to execute / init
- Mar 04 Sun 2018 00: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
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
- Mar 04 Sun 2018 00:43
-
CentOS 上安裝 cowsay
- Feb 26 Mon 2018 00: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"}
])
> 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"}
])
- Feb 26 Mon 2018 00:07
-
MongoDB 備份
# 備份
centos:~ # mongodump [-h <hostname>[:<port>]
centos:~ # ls dump # 在執行完 mongodump 後, 會將備份資料產生 dump 資料夾
centos:~ # mongodump [-h <hostname>[:<port>]
centos:~ # ls dump # 在執行完 mongodump 後, 會將備份資料產生 dump 資料夾
- Feb 24 Sat 2018 22:05
-
MongoDB 的基本操作
- Feb 24 Sat 2018 21:35
-
使用 docker 安裝 MongoDB
# 設定 repository
centos:~ # yum install epel-release
# 安裝 docker
centos:~ # yum install docker
centos:~ # yum install epel-release
# 安裝 docker
centos:~ # yum install docker
- Feb 24 Sat 2018 21: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
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
- Jul 08 Sat 2017 12: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}
linux:~ # mkdir hello
linux:~ # cd hello
linux:~/hello # gradle init
linux:~/hello # mkdir -p src/main/{groovy,java}
- Jun 30 Fri 2017 00:15
-
CentOS 以 Selenium RC 方式執行 RobotFramework
# 啟動 Xvfb, 有啟動 x window 可忽略此步驟
centos:~ # Xvfb :99 -ac -screen 0 1280x960x16 &
centos:~ # export DISPLAY=:99
centos:~ # Xvfb :99 -ac -screen 0 1280x960x16 &
centos:~ # export DISPLAY=:99
- Jun 28 Wed 2017 23:30
-
CentOS 上安裝 RobotFramework Selenium2Library
# 安裝 robotframework-selenium2library
centos:~ # pip install xpath
centos:~ # pip install robotframework-selenium2library
centos:~ # pip install xpath
centos:~ # pip install robotframework-selenium2library
- Jun 28 Wed 2017 22:17
-
CentOS 上安裝 RobotFramework SSHLibrary
# install robotframework-sshlibrary
centos:~ # yum install python-devel openssl openssl-libs openssl-devel
centos:~ # pip install robotframework-sshlibrary
centos:~ # yum install python-devel openssl openssl-libs openssl-devel
centos:~ # pip install robotframework-sshlibrary
