I collected a lot of them, but all ended in failure. Finally, I found that this method is good and does not affect the usage. It is more important for the system with xampp installed. I hope you agree. Here’s how: Create a new file in the /etc/init.d directory and set the file permissions to be executable. You can choose any name you want, I named it: xamppv. The content is as follows, especially the first few lines with #, which are indispensable and cannot be changed. #!/bin/sh ### BEGIN INIT INFO # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin sudo /opt/lampp/xampp start Save the above files in the /etc/init.d directory and execute the following commands. sudo systemctl enable xamppv, sudo systemctl start xamppv can start the program immediately. The following commands can be used, but it doesn't matter if you don't use them. update-rc.d xampp defaults 400. The settings are complete, restart your computer! The above is the method and code content introduced in this article about how to make the program run automatically when the computer starts up in Linux. Thank you for your learning and support for 123WORDPRESS.COM. |
<<: Vue3 implements Message component example
>>: A brief introduction to the usage of decimal type in MySQL
1. Overview There are three ways to create a Dock...
This may be an issue that is easily overlooked. F...
1. Add PRIMARY KEY (primary key index) mysql>A...
Table of contents Logical Layering Separate busin...
Table of contents Create a vue + ts project using...
1. CSS background tag 1. Set the background color...
XPath is a language for selecting parts of XML do...
Table of contents 1. Introduction to Portainer 2....
This article shares the specific code of JavaScri...
Recently, there has been a growing demand for imp...
Preface You should often see this kind of special...
Documentation: https://github.com/hilongjw/vue-la...
Table of contents Preface Generate SVG Introducti...
Table of contents 1. Encapsulation API 2. Registe...
Table of contents 1. Configure bridging and captu...