📅  最后修改于: 2023-12-03 15:35:46.412000             🧑  作者: Mango
XAMPP is a widely used open-source web development tool that provides an easy and quick way to set up and manage Apache, MySQL, PHP, and Perl development environments. Lubuntu is a lightweight, fast, and easy-to-use Linux operating system. In this tutorial, we will learn how to install XAMPP on Lubuntu and use Shell-Bash to interact with it.
Download XAMPP for Linux from the official website.
Open a Terminal window and navigate to the folder where the XAMPP installer file was downloaded.
Make the installer file executable by running the following command:
chmod +x xampp-linux-x64-8.0.3-0-installer.run
Now run the installer file by running the following command:
./xampp-linux-x64-8.0.3-0-installer.run
Follow the on-screen instructions to complete the installation process. Once the installation is complete, XAMPP will be installed in the /opt/lampp
directory.
Open a Terminal window and navigate to the /opt/lampp
directory:
cd /opt/lampp
Start the XAMPP control panel by running the following command:
sudo ./manager-linux-x64.run
In the XAMPP control panel, you can start and stop Apache, MySQL, and other services. You can also configure the services by clicking on the "Configure" button.
To start Apache, run the following command:
sudo ./xampp start apache
To stop Apache, run the following command:
sudo ./xampp stop apache
To restart Apache, run the following command:
sudo ./xampp restart apache
Similarly, you can start and stop MySQL and other services by replacing "apache" with the name of the service you want to start or stop.
In this tutorial, we learned how to install XAMPP on Lubuntu and use Shell-Bash to interact with it. XAMPP is a powerful web development tool that can help you develop and test web applications quickly and easily. With Shell-Bash, you can easily manage the services provided by XAMPP and deploy your applications on the web.