wsl2如果ip设置正确 依然出现cannot open display,就要看防火墙权限有没有打开 参考文章:https://blog.csdn.net/Alisebeast/article/details/106680267