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
Today we will make a simple case, using js and jq...
Preface: The group by function retrieves the firs...
NERDTree is a file system browser for Vim. With t...
I recently used Dreamweaver to make a product pres...
This article uses the gearman+mysql method to imp...
I have read a lot of knowledge and articles about...
This article example shares the specific code of ...
vue-element-admin import component encapsulation ...
I have done some research on "embedding non-...
1. Introduction The main value that SELinux bring...
Table of contents Overview Why choose a framework...
Related articles: 9 practical tips for creating we...
Important note: Before studying this article, you...
MySql 8.0 corresponding driver package matching A...
Important data must be backed up, and must be bac...