[教學] Server安裝LiteSpeed網頁伺服器 - iPhone4.TW

會員登入



顯示結果從 1 到 3 共計 3 條
  1. #1
    吉米丘 的頭像

    勸敗大魔王

    註冊日期:09-20-2007
    文章:50,710
    謝謝你: 9,906
    在 6,551篇文章中獲得 48,051個感謝
    上次吉米分享過怎麼在Mac Server上面安裝apache來跑php

    但是老實說,那搞死人,到底網站的home目錄在哪

    又到底是系統管理那邊才是控制權?還是在「系統偏好設定」裡面的「共享」才是?

    不管了,換個方式

    所以今天吉米跟大家分享,安裝LiteSpeed的方式



    LiteSpeed
    http://www.litespeedtech.com/

    其實web server各門派的擁護者都有,有支持apache、nginx.... 等,就像iOS跟Android,就像Windows跟Mac一樣

    反正我就介紹,大家自己參考用

    當然這套軟體號稱同樣資源下,效能比apache快上6倍以上

    至於你信不信,就要裝了才知道




    先到畫面上面點選download,或是選左邊download

    這邊有幾種版本,第一種就是企業版,要收錢的,不過若你是用來賺錢的,你可以先點選旁邊那個索取試用的方式

    來個14天的體驗,用喜歡再買,還有30天滿意保證,總而言之,先試再說

    接著就看你是哪個作業系統,Mac的就選Mac OS,看你的CPU是intel的還是PPC的

    當然這也可以用在一般的Linux上面,再依照你是32還是64位元的版本選擇




    你是搞好玩的也沒關係,那就繼續往下啦,就有免費版本可以下載,基本上免費版本就是限制最大連線數

    既然你沒玩這麼大,就省下來吧



    下載好之後,就把檔案丟到你server的根目錄去吧







    然後解壓縮,進入到該目錄裡面

    接著再命令列下達指令

    代碼:
    ./install.sh

    依照程序走下去


    IMPORTANT: In order to continue installation you must agree with above license terms by typing "Yes" with capital "Y"!

    Do you agree with above license?

    接著你會看到軟體的使用聲明,並且問你同不同意,請輸入「Yes」,注意喔,Y要大寫



    Please specify the destination directory. You must have permissions to
    create and manage the directory. It is recommended to install the web server
    at /opt/lsws, /usr/local/lsws or in your home directory like '~/lsws'.

    ATTENTION: The user 'nobody' must be able to access the destination
    directory.

    Destination [/usr/local/lsws]:

    安裝目錄要裝哪,基本上建議原始設定/usr/local/lsws就好,所以直接按enter吧



    Please specify the user name of the administrator.
    This is the user name required to log into the administration web interface.

    User name [admin]:
    請輸入要設定成管理者的帳號



    Please specify the administrator's password.
    This is the password required to log into the administration web interface.

    Password:
    請輸入管理者的密碼,以進入網頁管理畫面



    Please specify administrators' email addresses.
    It is recommended to specify a real email address,
    Multiple email addresses can be set by a comma
    delimited list of email addresses. Whenever something
    abnormal happened, a notificiation will be sent to
    emails listed here.

    Email addresses [root*localhost]:
    請輸入管理者的信箱:



    Will you use LiteSpeed Web Server with a hosting control panel?

    0. NONE
    1. cPanel
    2. DirectAdmin
    3. Plesk
    4. Hsphere
    5. Interworx
    6. Lxadmin
    7. ISPManager
    Please select (0-6) [0]?

    你有安裝其他的主機管理系統嗎?就看你的系統來選擇囉


    As you are the root user, you must choose the user and group
    whom the web server will be running as. For security reason, you should choose
    a non-system user who does not have login shell and home directory such as
    'nobody'.

    User [nobody]:
    匿名使用者的帳號名稱,直接按enter就好囉



    Please choose the group that the web server running as.

    User 'nobody' is the member of following group(s): nobody
    Group [nobody]:
    匿名使用者的群組,也是直接按Enter就好


    Please specify the port for normal HTTP service.
    Port 80 is the standard HTTP port, only 'root' user is allowed to use
    port 80, if you have another web server running on port 80, you need to
    specify another port or stop the other web server before starting LiteSpeed
    Web Server.
    You can access the normal web page at http://<YOUR_HOST>:<HTTP_PORT>/

    HTTP port [8088]:
    請定義HTTP服務的Port,一般來說網站都是用80,除非你有特殊需求,可以改成其他的,不過別擔心,之後還可以再做額外的設定,所以若你沒有做其他的用途,先設定成80吧


    Please specify the HTTP port for the administration web interface,
    which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/

    Admin HTTP port [7080]:
    請定義管理網頁的HTTP port,預設是7080,看你需求去改變它



    Cannot find RUBY installation, remember to fix up the ruby path configuration
    before you can use our easy RubyOnRails setup.


    You can setup a global script handler for PHP with the pre-built PHP engine
    shipped with this package now. The PHP engine runs as Fast CGI which
    outperforms Apache's mod_php.
    You can always replace the pre-built PHP engine with your customized PHP
    engine.

    Setup up PHP [Y/n]:
    是否要使用PHP,選擇Y,之後你也可以依照你的需求去客製PHP引擎


    Suffix for PHP script(comma separated list) [php]:
    PHP語法的Suffix,不知道就直接按enter


    LiteSpeed Web Server Enterprise Edition can run in chroot environment.
    It is impossible for the chrooted process and its children processes to
    access files outside the new root directory.

    With chroot configured properly, there is no need to worry about sensitive
    data being accidentally exposed by insecure CGI programs or web server itself.
    Even when a hacker some how gain a shell access, all files he can access is
    under the chrooted directory.

    This installation script will try to setup the initial chroot environment
    automatically.

    However, it is not easy to setup a chroot environment and you CGI program may
    break. So we do not recommend enabling it for the first time user.
    It can be enabled later by running this installation script again.

    Enable chroot [y/N]:
    要不要開啟chroot,若你看不懂這個,就選N吧,不要若你看的懂,就不用我問啦



    AWStats Integration

    AWStats is a popular log analyzer that generates advanced web server
    statistics. LiteSpeed web server seamlessly integrates AWStats into
    its Web Admin Interface. AWStats configuration and statistics update
    have been taken care of by LiteSpeed web server.

    Note: If AWStats has been installed already, you do not need to
    install again unless a new version of AWStats is available.

    Would you like to install AWStats Add-on module [y/N]?

    AWStats的網路使用狀況分析要不要安裝,按下y,安裝吧

    Congratulations! The LiteSpeed Web Server has been successfully installed.
    Command line script - "/usr/local/lsws/bin/lswsctrl"
    can be used to start or stop the server.

    It is recommended to limit access to the web administration interface.
    Right now the interface can be accessed from anywhere where this
    machine can be reached over the network.

    Three options are available:
    1. If the interface needs to be accessed only from this machine, just
    change the listener for the interface to only listen on the loopback
    interface - localhost(127.0.0.1).
    2. If the interface needs to be accessible from limited IP addresses or sub
    networks, then set up access control rules for the interface accordingly.
    3. If the interface has to be accessible via internet, SSL (Secure Sockets
    Layer) should be used. Please read respective HOW-TOs on SSL configuration.

    To change configurations of the interface, login and click
    "Interface Configuration" button on the main page.
    The administration interface is located at http://localhost:<ADMIN_PORT>/
    or http://<ip_or_Hostname_of_this_machine>:<ADMIN_PORT>/

    Would you like to have LiteSpeed Web Server started automatically
    when the server restarts [Y/n]?
    就這樣裝好囉,接著他問你,要不要讓伺服器開始之後自動執行LiteSpeed Web Server的服務,當然選「Y」囉

    [OK] The startup script has been successfully installed!
    Would you like to start it right now [Y/n]?
    開機程序已經設定好了,接著你想要開始使用了嗎? 選「Y」


    開工囉



    接著輸入 「http://你的網址:7080/」 輸入帳號密碼,就可以看到設定畫面囉


  2. #2
    Archangelwu 的頭像

    海盜船長

    註冊日期:07-17-2008
    文章:945
    謝謝你: 246
    在 87篇文章中獲得 161個感謝
    使用的狀況如何呢?


  3. #3
    吉米丘 的頭像

    勸敗大魔王

    註冊日期:09-20-2007
    文章:50,710
    謝謝你: 9,906
    在 6,551篇文章中獲得 48,051個感謝
    引用 作者: Archangelwu 查看文章
    使用的狀況如何呢?
    我轉雲端很久囉,現在都放在「捕夢網」囉


 

 

發文規則

  • 不可以發表新主題
  • 不可以發表回覆
  • 不可以上傳附件
  • 不可以編輯自己的文章
  •  
回到此頁頂端