一些些的code、一點點的Life,這就是生活。
我幫我的FEDORA23安裝上XAMPP了(PHP7版本的)
而我想要讓他開機自動執行
所以我自己創了一個XAMPP的SERVICE 讓FEDORA去AUTOSTART
方法如下
#vi /usr/lib/systemd/system/xampp.service
1 2 3 4 5 6 7 8 9 10 11 | [Unit] Description=xampp [Service] WorkingDirectory=/opt/lampp/ Type=forking ExecStart=/opt/lampp/lampp start KillMode=process [Install] WantedBy=multi-user.target |
#systemctl enable xampp.service
#systemctl start xampp.service
這樣就可以了
如果要開防火牆的話 要去
#firewall-config
把她打開即可
一個不務正業,甚麼科技產品都玩的網路宅宅。 If you want to find me,that's easy! I will always on the Internet. so just find me, follow me. I will show you everything fun.