Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Git bash localhost:8080:连接被拒绝错误_Java_Spring_Bash_Spring Boot_Git Bash - Fatal编程技术网

Java Git bash localhost:8080:连接被拒绝错误

Java Git bash localhost:8080:连接被拒绝错误,java,spring,bash,spring-boot,git-bash,Java,Spring,Bash,Spring Boot,Git Bash,我对使用git bash非常陌生,正在学习Spring引导教程,如下所示: 我试着执行: curl localhost:8080 但收到以下信息: $ curl localhost:8080 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent L

我对使用git bash非常陌生,正在学习Spring引导教程,如下所示:

我试着执行:

    curl localhost:8080
但收到以下信息:

    $ curl localhost:8080

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0curl: (7) Failed to connect to localhost port 8080: Connection refused
我尝试过这样做来解决这个问题,但没有成功:

    # Get system value
    $ git config --system --get https.proxy
    $ git config --system --get http.proxy

    # Get global value
    $ git config --global --get https.proxy
    $ git config --global --get http.proxy

    # Check configuration for your user
    $ cat $HOME/.gitconfig

    # Unset system value
    $ git config --system --unset https.proxy
    $ git config --system --unset http.proxy

    # Unset global value
    $ git config --global --unset https.proxy
    $ git config --global --unset http.proxy

有没有关于如何解决这个问题的建议?(如果可能,请简化步骤,我最近才开始使用git!:)

git config--system--get https.proxy
仅为git命令取消设置代理
curl
是一个常规的bash命令。拒绝连接意味着端口关闭。您是否在端口8080上运行web服务器?@GordonDavisson我已经在防火墙的入站规则中为8080创建了一个规则,但它仍然没有连接,当我键入“netstat-an”时,我在本地地址列中看不到端口