PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   系統組件 (https://www.pcdvd.com.tw/forumdisplay.php?f=19)
-   -   linux distribution的選擇 (https://www.pcdvd.com.tw/showthread.php?t=1098537)

pm07g101 2016-02-11 08:07 PM

引用:
作者tbsky
rhel 6/7 目前基本是維護 10 年,再多要額外付錢。centos 6/7 目前也是 10 年。
所以 centos 6 現在只剩下四年多的維護期了。如果可以還是前進 7 版吧。


6.x的網卡eth0到了7.x居然不一樣了,沒有圖形介面,設IP不看手冊文件不行><
不曉得是甚麼道理?

tbsky 2016-02-11 08:13 PM

另外也可以考慮 scientific linux, 同樣是 rhel 的 clone。基於 centos 已經被 redhat 給 merge 了,scientific linux 有些地方可以給管理者比較多的自由度。譬如 fastbugs 和 security fix 的 repository 是分開的。也可以停留在某個小版本譬如 7.1 (不過這個因為 rhel 原廠 kernel 每個小版都不相容的緣故,越來越困難了)。

tbsky 2016-02-11 08:15 PM

引用:
作者pm07g101
6.x的網卡eth0到了7.x居然不一樣了,沒有圖形介面,設IP不看手冊文件不行><
不曉得是甚麼道理?


eth0 的名字被改掉了,不喜歡的話要加 kernel boot parameter "net.ifnames=0" 取消這個功能。 https://www.freedesktop.org/wiki/So...InterfaceNames/

網路設定圖形界面是一定有的。文字模式用的圖形界面 nmtui 也是有的。
不過很多人是不喜歡 NetworkManager 寧願用文字檔設定,尤其是 Server。
NetworkManager + systemd 在 rhel7 目前還有問題尚未解決,不過一般人不容易遇到。

pm07g101 2016-02-11 08:30 PM

引用:
作者tbsky
eth0 的名字被改掉了,不喜歡的話要加 kernel boot parameter "net.ifnames=0" 取消這個功能。 https://www.freedesktop.org/wiki/So...InterfaceNames/

網路設定圖形界面是一定有的。文字模式用的圖形界面 nmtui 也是有的。
不過很多人是不喜歡 NetworkManager 寧願用文字檔設定,尤其是 Server。
NetworkManager + systemd 在 rhel7 目前還有問題尚未解決,不過一般人不容易遇到。


學長真是了不起,信手拈來處處學問,再一次感謝!!

csshih 2016-02-11 08:42 PM

引用:
作者pm07g101
非常感謝大家熱心回應。

再麻煩您提供一下相關連結,這我真的還不懂。


systemctl和service的不同?
還是設定檔的不同?
若你真的對centos上apache的架設是初學者
先從centos 6開始架設好,在自己嘗試將設定檔一個個改寫搬到centos 7
遠比我寫一堆有用

pm07g101 2016-02-12 05:14 AM

引用:
作者csshih
systemctl和service的不同?
還是設定檔的不同?
若你真的對centos上apache的架設是初學者
先從centos 6開始架設好,在自己嘗試將設定檔一個個改寫搬到centos 7
遠比我寫一堆有用


看書上說nginx比apache強大,好奇之下(其實是因為nginx安裝手冊比較薄)就開始
裝nginx。目前在nginx server block的步驟,但看不太懂><

一坨長這樣:

server {
listen 80;
server_name nginxsite.com www.nginxsite.com;
location / {
root /var/www/nginxsite.com/public_html;
index index.html index.htm;
try_files $uri $uri/ =404;
} error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

Jiun Yu 2016-02-12 10:28 AM

server有要對外開放的話安全防護要做好嘿
不然可能沒幾天就被hack走了...

csshih 2016-02-12 04:09 PM

引用:
作者pm07g101
看書上說nginx比apache強大,好奇之下(其實是因為nginx安裝手冊比較薄)就開始
裝nginx。目前在nginx server block的步驟,但看不太懂><

一坨長這樣:

server {
listen 80;
server_name nginxsite.com www.nginxsite.com;
location / {
root /var/www/nginxsite.com/public_html;
index index.html index.htm;
try_files $uri $uri/ =404;
} error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}


nginx有很多原因導致她比apache的respnd快非常多
但是他設定檔也對初學者不友善
先去玩玩apache有點心得後
再來看以下這類文章
https://www.digitalocean.com/commun...n-an-ubuntu-vps

pm07g101 2016-02-12 05:51 PM

引用:
作者csshih
nginx有很多原因導致她比apache的respnd快非常多
但是他設定檔也對初學者不友善
先去玩玩apache有點心得後
再來看以下這類文章
https://www.digitalocean.com/commun...n-an-ubuntu-vps


感謝指導。我就是參考同系列的文章在Centos6.7下完成安裝的,
還算順利。

PAN_PAN 2016-02-12 08:42 PM

nginx 對於 靜態網頁比 apache 快
但是如果是 動態網頁 的解譯還是用 apache 吧.
這主要是 apache 有大多數 service 端語言轉譯的 module
Nginx 則需要使用轉譯執行檔 (FastCGI)
http://mike7120.blogspot.tw/2011/02...-nginx-web.html

所以說 有人想出來
https://www.digitalocean.com/commun...roxy-for-apache

簡單說
前端 HTML 用 nginx 後端還是跑 apache


所有的時間均為GMT +8。 現在的時間是05:51 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。