📅  最后修改于: 2023-12-03 15:30:06.466000             🧑  作者: Mango
JPEG is a commonly used image format on the web. However, JPEG images can be quite large, which can slow down the loading times of web pages. This is where jpegoptim comes in - it's a popular tool for compressing JPEG images. In this guide, we'll walk you through how to install jpegoptim on cpanel using Shell-Bash.
Before we get started, you'll need the following:
First, you'll need to connect to your cPanel account using SSH. You can use any SSH client to do this, such as PuTTY or OpenSSH.
ssh [username]@[domain.com]
Next, you'll want to update your system to ensure you have the latest packages installed. Run the following command to update your system:
sudo yum update -y
Now, you'll need to install the EPEL repository. The EPEL repository provides additional packages that are not included in the default repositories.
sudo yum install epel-release -y
Once the EPEL repository is installed, you can install jpegoptim using the following command:
sudo yum install jpegoptim -y
After the installation is complete, you can check that jpegoptim is installed by running the following command:
jpegoptim -V
This should display the version number of jpegoptim if it was installed successfully.
In this guide, we've shown you how to install jpegoptim on cpanel using Shell-Bash. jpegoptim is a great tool for compressing JPEG images, which can help improve the loading times of your web pages.