|
@@ -20,31 +20,14 @@
|
|
|
```php artisan serve```
|
|
|
|
|
|
|
|
|
-## 配置php xdebug
|
|
|
|
|
|
-php.ini中添加:
|
|
|
-```bash
|
|
|
-[xdebug]
|
|
|
-zend_extension=/www/server/php/82/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so
|
|
|
-xdebug.mode=debug
|
|
|
-xdebug.start_with_request=yes
|
|
|
-xdebug.client_host=127.0.0.1
|
|
|
-xdebug.client_port=9003
|
|
|
-xdebug.idekey=VSCODE
|
|
|
-```
|
|
|
+## 设置linux 允许php以80端口启动
|
|
|
|
|
|
-luanch.json中添加:
|
|
|
```bash
|
|
|
-{
|
|
|
- "name": "Listen for Xdebug",
|
|
|
- "type": "php",
|
|
|
- "request": "launch",
|
|
|
- "port": 9003
|
|
|
-},
|
|
|
+sudo setcap 'cap_net_bind_service=+ep' /www/server/php/82/bin/php
|
|
|
```
|
|
|
|
|
|
-## 设置linux 允许php以80端口启动
|
|
|
-
|
|
|
+## 停止宝塔nginx自动启动
|
|
|
```bash
|
|
|
-sudo setcap 'cap_net_bind_service=+ep' /www/server/php/82/bin/php
|
|
|
+sudo systemctl disable nginx
|
|
|
```
|