2016年12月30日 星期五

Nginx

Nginx, 一種網頁伺服器, 起初是供俄國大型的入口網站及搜尋引擎Rambler使用

此軟體BSD-like協定下發行, 可在UNIX、GNU/Linux、BSD、Mac OS X、Solaris, 以及Microsoft Windows等作業系統中執行

Nginx是一款面向效能設計的HTTP伺服器, 相較於Apache、lighttpd具有占有記憶體少, 穩定性高等優勢

在Linux作業系統下, Nginx使用epoll事件模型,得益於此, Nginx在Linux作業系統下效率相當高。

自PHP-5.3.3起,PHP-FPM加入到了PHP核心,編譯時加上--enable-fpm即可提供支援

2016年12月17日 星期六

PHP安裝

# dnf install php php-common
# dnf install php-mysql php-pdo php-gd php-mbstring
# systemctl restart httpd
測試
# cd /var/www/html/
# vi  info.php
<?php
phpinfo()
?>

2016年12月16日 星期五

MariaDB(MySQL)安裝

# dnf install mariadb-server
# systemctl enable mariadb
# systemctl start mariadb
# systemctl status mariadb
# mysql_secure_installation

2016年12月3日 星期六

2016年10月19日 星期三

DNS Server 設定

named.conf:
zone "test.com" IN {
type master;
file "zone.test.com";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "zone.192.168.1";
};

zone.test.com:
$TTL 600
@ IN SOA host.test.com. root.test.com. ( 20161001 1H 2D 1W 10 )
@ IN NS dns.test.com.
@ IN A 192.168.1.1
@ IN MX 10 mail.test.com.
dns.test.com. IN A 192.168.1.1
mail IN A 192.168.1.1
www IN A 192.168.1.1

zone.192.168.1:
$TTL 600
@ IN SOA host.test.com. root.test.com. ( 20161001 1H 2D 1W 10 )
@ IN NS dns.test.com.
1 IN PTR dns.test.com.
1 IN PTR host.test.com.
1 IN PTR mail.test.com.

2016年10月4日 星期二

Apache安裝

$ sudo dnf install httpd
$ sudo systemctl enable httpd.service
$ sudo systemctl start httpd
$ sudo systemctl status httpd

2016年9月11日 星期日

安裝 MS SQL Server 2008 及簡單試用

1. 到 Windows 官網下載 SQL Server 2008後, 解開壓縮檔後開始安裝, 點擊新的安裝
w-studio.idv.tw
2. 首先會測試系統是否支援, 我用 Windows Server 2012系統應該沒問題

2016年9月1日 星期四

安裝Windows Server 2012 R2 - Essentials 版

1. Windows Server 2012 R2 - Essentials 版這版才有中文化, 至官網下載 iso 檔, 首先安裝畫面選擇語系

2. 接著立即安裝

2016年7月2日 星期六

Fedora 24 Apache解除防火牆

嘖, 怎麼新版Fedora Server的防火牆預設都關起來, 只開22 port?

真麻煩.....


解除防火牆

$ sudo firewall-cmd --permanent --add-service=http
$ sudo firewall-cmd --permanent --add-service=https
$ sudo systemctl reload firewalld

2016年6月26日 星期日

Service指令變更?

Fedora 24 之後的指令變更了?
真不習慣

#chkconfig "daemon" on

#systemctl  enable  "daemon".service

#/etc/rc.d/init.d/"daemon" start  或  #service "daemon" start

#systemctl start "daemon"

2016年5月19日 星期四

MySQL for Windows

至 MySQL 網站下載安裝檔
http://dev.mysql.com/downloads/windows/

安裝到最後會要自行設定root密碼

執行 MySQL Command Line Client 登入密碼

執行 MySQL Notifier 再去啟動 MySQL

2016年5月18日 星期三

如何 Apache for Windows

下載 Apache for Windows 版本
https://httpd.apache.org/docs/current/platform/windows.html#down

解壓縮後直接啟動執行會出現缺少 vcruntime140.dll 檔案的錯誤

需再安裝 Visual C++ Redistributable for Visual Studio 201X
http://www.microsoft.com/en-us/download/details.aspx?id=30679


將 Apache 的目錄移至 C:\

以管理者身份執行  httpd.exe -k install

開啟瀏覽器於網址打上 127.0.0.1, 有看到畫面即成功