Installing Lighttpd by Using a Script
- Obtain the Lighttpd one-click script and copy it 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.
- Go to the home directory and decompress the script package.
1 2
cd /home/ tar -xzvf lighttpd_automation.tar.gz

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

Table 1 describes the script directory structure.
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) 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.
- Run the install.sh script. After the script is executed, restart the device for the optimization to take effect.
1sh 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.
1sh rollback.sh
Parent topic: Installing Lighttpd