Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (50)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (1)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (79)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (7)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: Nagios
[Nagios][Cacti] Monitor disk space > 8TB
Because the limitation of snmp, when the disk space is more than 8TB, we will get the wrong value. Whether we use snmpwalk or snmpget, the results are all the same. Therefore, we need to restore the correct value. If … Continue reading
Posted in Cacti, Nagios, SNMP
Leave a comment
Etherpad-lite in Ubuntu 14.04 x64 server
etherpad 安裝基本套件需求
1 |
sudo apt-get install gzip git-core curl python libssl-dev pkg-config build-essential |
更新安裝nodejs的來源
1 |
sudo curl -sL https://deb.nodesource.com/setup | sudo bash - |
安裝nodejs
1 |
sudo apt-get install nodejs |
新增etherpad的使用者
1 2 |
sudo useradd etherpad -m -s /bin/bash -r sudo passwd etherpad |
將etherpad使用者加入sudoers中
1 |
sudo usermod -a -G sudo etherpad |
切換到etherpad使用者
1 |
su - etherpad |
下載etherpad檔案
1 |
wget https://github.com/ether/etherpad-lite/zipball/master |
安裝unzip
1 |
sudo apt-get install unzip |
解壓縮etherpad壓縮檔
1 |
unzip master |
將目錄名稱變好看一點
1 |
mv ether-etherpad-lite-3ebcaad etherpad-lite |
切換到etherpad-lite目錄
1 |
cd etherpad-lite |
複製設定檔範本
1 |
cp settings.json.template setting.json |
設定etherpad基本環境
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
vim setting.json # 找到以下的設定加以替換 "requireSession" : false, "sessionNoPassword" : false, "requireAuthentication": false, "requireAuthorization": true, "users": { "admin": { "password": "password", "is_admin": true }, "user": { "password": "password", "is_admin": false } }, |
試執行,可看 http://ip:9001 是否正常
1 |
./bin/run.sh |
安裝mysql、nginx
1 |
sudo apt-get install mysql-server nginx |
建立etherpad資料庫、設定使用者權限
1 2 3 4 |
mysql -uroot -p > create database etherpad; > grant all privileges on etherpad.* to 'etherpad'@'localhost' identified by 'password'; > exit |
設定etherpad資料存放使用mysql
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
vim setting.json # 註解使用dirty的部分 //"dbType" : "dirty", //"dbSettings" : { // "filename" : "var/dirty.db" // }, # 加入使用mysql的部分 "dbType" : "mysql", "dbSettings" : { "user" : "etherpad", "host" : "localhost", "password": "password", "database": "etherpad" }, |
試執行,並請連至 http://ip:9001 增加幾筆資料 … Continue reading
Posted in etherpad, MySQL, Nagios, Ubuntu
Leave a comment
Nagios
上次碰Nagios好像是四月份的時候 今天又摸了一下 順帶解決老妖提的”CHECK_NRPE: Error – Could not complete SSL handshake.”問題 因為Nagios預設是走SSL去pooling取得各主機的資訊 記得剛開始的時候我都會下”-n”的參數來規避SSL
Posted in Nagios
Leave a comment