Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Lighttpd by Using a Script

  1. Obtain the Lighttpd script package.
    1. Download the script package using a local browser.

      URL: https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/web/Scripts/lighttpd_automation.tar.gz

    2. Copy lighttpd_automation.tar.gz to the /home directory.

      If the server is connected to the Internet, you can run the wget command on the server to download the script package.

  2. Go to the home directory and decompress the script package.
    1
    cd /home/
    
    1
    tar -xzvf lighttpd_automation.tar.gz
    

  3. Go to the lighttpd_automation directory and query the files in the directory.
    1
    cd lighttpd_automation
    
    1
    ll
    

    For details about the script directory structure, see Table 1.

    Table 1 Overall script directory structure

    Directory

    Description

    deps

    Directory used for compilation and installation

    NOTE:

    The installation script first obtains the Lighttpd source code using the wget command. If the server is not connected to the Internet, download the Lighttpd source code (see 1.a) and save the source code to this directory.

    scripts

    Folder in which common optimization scripts are stored.

    install.sh

    Script used to implement one-click compilation, deployment, and tuning of Lighttpd.

    rollback.sh

    Rollback script, which is used to roll back all operations of the script.

  4. Run the install.sh script. After the script is executed, restart the device for the optimization to take effect.
    1
    sh install.sh
    

    • The script contains only common tuning. Software tuning needs to be performed based on actual situation.
    • (Optional) If the environment needs to be rolled back or the deployment using a script fails, run the rollback script to roll back the script operation and restart the device.
      1
      sh rollback.sh