P粉5471709722023-08-15 00:15:48
You can try editing your APP_PORT
in your .env
file, like this:
APP_PORT=3001 // 或者你喜欢的任意端口号
Afterwards you can re-run your sail command:
sail up
Now, you should be able to access your website via localhost:3001
.
The reason why your sail up
command fails may be because your PORT
number 80
has been used by other software (such as nginx
or apache
) is occupied.