Linux MintにLEMPをインストールするときに発生する問題

Linux MintにLEMPをインストールするときに発生する問題

私は以下の指示に従ってLinux MintにLEMPスタックをインストールしようとしました。https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04

ところでロードしようとするとhttp://192.168.1.5最後のステップとして、

This site can’t be reached
192.168.1.5 took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_TIMED_OUT

それまでは、すべてがうまくいくようです。

文書の内容/etc/nginx/sites-available/default:

# Default server configuration
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;
    server_name 192.168.1.5;

    location / {
        try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

    }
    location ~ /\.ht {
        deny all;
    }
}

どんなアイデアがありますか?

ベストアンサー1

nginxがポート80をリッスンする唯一のプログラムであることを確認してください。たとえば、apache2も実行している場合、両方のサーバーが同じポートをリッスンして混乱が発生するため、これが可能です。便利なリンクですhttps://www.cyberciti.biz/faq/find-linux-what-running-on-port-80-command/ また、URLの作成に使用するブラウザに応じてURLを少し調整するか、ポート:192.168.1.5:80を指定するか、サーバードメインを使用してみてください。

おすすめ記事