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)
- 工具軟體 (51)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (2)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (80)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (8)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: 伺服器 網站服務
Nginx 存取設定 – http_auth_basic_module
編輯檔案 /usr/local/nginx/conf/nginx.conf for http 模組 location / { satisfy any; # satisfy 滿足條件 # satisfy [all | any] # satisfy all => 下列條件都要滿足 # satisfy any => 下列條件只要任一滿足就可以 # 此處用到 http_access_module 及 http_auth_basic_module 兩個 # 所以設定為any~任一滿足即可 root html; index index.html … Continue reading
Posted in Nginx
Leave a comment
Nginx 存取設定
檔案 /usr/local/nginx/conf/nginx.conf #在 http 模組下 location / { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny ip list deny all; } location /obs-remote { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny … Continue reading
Posted in Nginx
Leave a comment
Ubuntu x64 快速安裝 Nginx with RTMP module
#!/bin/sh apt-get install build-essential libpcre3 libpcre3-dev libssl-dev libxslt-dev -y cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip tar -zxvf nginx-1.7.3.tar.gz apt-get install unzip -y unzip master.zip cd nginx-1.7.3/ ./configure –with-http_ssl_module –with-http_xslt_module –add-module=../nginx-rtmp-module-master make make install cp /tmp/nginx-rtmp-module-master/stat.xsl /usr/local/nginx/html/ cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.bak echo … Continue reading
Posted in Nginx, Ubuntu
Leave a comment
Nginx init script (Ubuntu)
將下列內容貼到 /etc/init.d/nginx 中,並且使用 chmod +x nginx 調整屬性 #! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the nginx web server … Continue reading
Install Nginx with RTMP module in Ubuntu 12.04 x64 LTS
# 安裝必要套件 apt-get install build-essential libpcre3 libpcre3-dev libssl-dev # 下載 tar 安裝檔案 cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip # 安裝 nginx tar -zxvf nginx-1.7.3.tar.gz unzip master.zip cd nginx-1.7.3/ ./configure –with-http_ssl_module –with-http_xslt_module –add-module=../nginx-rtmp-module-master make make install # 編輯 nginx 設定檔案 vim … Continue reading
Posted in Nginx, RTMP, Ubuntu
Leave a comment
Git Server 安裝
OS: Ubuntu 12.04 Desktop x64 安裝Gitlab + MySQL 系統更新 apt-get update apt-get upgrade -y apt-get dist-upgrade 安裝基本需求 update-alternatives –set editor /usr/bin/vim.basic sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev … Continue reading
Posted in Git, Ubuntu
Leave a comment
Git : non-fast-forward
當進行 gir push 發生 “non-fast-forward” 錯誤時 (如下面這個範例) root@ubuntu:/mnt/tdg_logs/blacklist/Git/master# git push -u 20140821 master Enter passphrase for key ‘/root/.ssh/id_rsa’: To git@cowman.no-ip.org:udn/udn_php-domain_name_query.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘git@cowman.no-ip.org:udn/udn_php-domain_name_query.git’ To prevent you from losing history, … Continue reading
Posted in Git
Leave a comment
Openvpn logrotate.d 設定
編輯/etc/logrotate.d/openvpn vim /etc/logrotate.d/openvpn /var/log/openvpn/openvpn.log { daily #每日歸為一個log檔 rotate 99999999 #可以保存9999999個檔案 compress #壓縮檔案 dateext #以日期重新命名 postrotate /etc/init.d/openvpn reload endscript }
Posted in Linux, OpenVPN
Leave a comment
Radius 過濾來源 IP
此篇是在說明過濾 Radius 來源的 IP,限定某些 realm 只能由特定的單位過來 (就是那該死的 iTaiwan ….)
Posted in Radius
Leave a comment
htaccess ( apache 存取控制 )
修改 /etc/httpd/conf/httpd.conf <Directory “/var/www/html”> # # Possible values for the Options directive are “None”, “All”, # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that “MultiViews” must be named *explicitly* — “Options All” # … Continue reading
Posted in Apache
Leave a comment