{"id":1952,"date":"2021-10-27T04:26:02","date_gmt":"2021-10-26T19:26:02","guid":{"rendered":"https:\/\/akal.co.kr\/?p=1952"},"modified":"2022-03-25T17:28:16","modified_gmt":"2022-03-25T08:28:16","slug":"%ec%9a%b0%eb%b6%84%ed%88%ac-20-04-%ec%9d%b4%ed%9b%84%eb%b6%80%ed%84%b0-nginx-%ec%9e%ac%eb%b6%80%ed%8c%85-%ed%98%b9%ec%9d%80-%ec%9e%ac%ec%8b%9c%ec%9e%91%ec%8b%9c%ec%97%90-bind-%ec%97%90%eb%9f%ac","status":"publish","type":"post","link":"https:\/\/akal.co.kr\/?p=1952","title":{"rendered":"\uc6b0\ubd84\ud22c 20.04 \uc774\ud6c4\ubd80\ud130 nginX \uc7ac\ubd80\ud305 \ud639\uc740 \uc7ac\uc2dc\uc791\uc2dc\uc5d0 bind \uc5d0\ub7ec\uac00 \ub098\ud0c0\ub0a0\ub54c"},"content":{"rendered":"\n<p>\uc6b0\ubd84\ud22c 20.04\ub97c \uc0ac\uc6a9\ud55c \uc774\ud6c4\uc5d0 nginX \uc124\uc815\uc744 \ubc14\uafbc \ud6c4 nginX\ub97c \uc7ac\uc2dc\uc791 \uc2dc\ud0a4\uba74 \ud56d\uc0c1 \uc5d0\ub7ec\uac00 \ud280\uc5b4\ub098\uc654\ub2e4. <br \/>systemctl status nginx.service \ub85c \ud655\uc778\uc744 \ud574\ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud669\uc774 \ubc1c\uc0dd\ud55c\ub2e4.<\/p>\n<pre><code class=\"language-bash\">:~# systemctl status nginx.service\n\u25cf nginx.service - nginx - high performance web server\nLoaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\nActive:&lt;strong&gt; failed&lt;\/strong&gt; (Result: exit-code) since Mon 2020-07-27 18:58:53 KST; 11s ago\nDocs: http:\/\/nginx.org\/en\/docs\/\nProcess: 34135 ExecStart=\/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf (code=exited, status=1\/FAILURE)\n\nJul 27 18:58:51 happist.com systemd[1]: Starting nginx - high performance web server\u2026\nJul 27 18:58:51 happist.com nginx[34135]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\nJul 27 18:58:51 happist.com nginx[34135]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\nJul 27 18:58:52 happist.com nginx[34135]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\nJul 27 18:58:52 happist.com nginx[34135]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\nJul 27 18:58:53 happist.com nginx[34135]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\nJul 27 18:58:53 happist.com nginx[34135]: nginx: [emerg] still could not bind()\nJul 27 18:58:53 happist.com systemd[1]: nginx.service: Control process exited, code=exited, status=1\/FAILURE\nJul 27 18:58:53 happist.com systemd[1]: &lt;strong&gt;&lt;span style=&quot;color: #fcb900;&quot; class=&quot;ugb-highlight&quot;&gt;nginx.service: Failed with result &#039;exit-code&#039;.&lt;\/span&gt;&lt;\/strong&gt;\nJul 27 18:58:53 happist.com systemd[1]: &lt;strong&gt;&lt;span style=&quot;color: #cf2e2e;&quot; class=&quot;ugb-highlight&quot;&gt;Failed to start nginx - high performance web server.&lt;\/span&gt;&lt;\/strong&gt;<\/code><\/pre>\n<p>\uc774\uac8c \ubb34\uc2a8 \uc0c1\ud669\uc778\uac00 \uc2f6\uc5b4\uc11c \ucc3e\uc544\ubd24\ub354\ub2c8 80\ubc88 \ud3ec\ud2b8\uc758 \uc911\ubcf5\uc0ac\uc6a9\uc73c\ub85c \uc778\ud55c \uc5d0\ub7ec.<br \/>\ubcf4\ud1b5 \uc778\ud130\ub137\uc5d0\uc11c\ub294 \uac19\uc740 80\ubc88 \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \uc544\ud30c\uce582 \uc11c\ubc84\ub97c \uc8fd\uc774\uba74 \ub41c\ub2e4\uc9c0\ub9cc, \ub098\ub294 Apache2 \uc6f9\uc11c\ubc84\ub294 \uc124\uce58\ub3c4 \ud558\uc9c0 \uc54a\ub294\ub2e4.<\/p>\n<p>\uc5b4\ub835\uc0ac\ub9ac \ucc3e\uc544\uc11c \ud574\uacb0\ud55c \uc694\uc778\uc740 IPv6 \ub54c\ubb38&#8230;<br \/>nginX\uc758 \/etc\/nginx\/sites-available\/default \uc124\uc815\ud30c\uc77c\uc5d0\uc11c \ub2e4\uc74c \ubd80\ubd84\uc744 \uc218\uc815\ud574\uc900\ub2e4.<\/p>\n<pre><code class=\"language-\"># Default server configuration\n# \nserver { \n            listen 80 default_server;\n            listen [::]:80 default_server;\n\n \uc704\uc758 \ub0b4\uc6a9\uc744 \uc544\ub798\uc640 \uac19\uc774 \n\n# Default server configuration\n# server { \n                listen 80; \n                listen [::]:80 ipv6only=on default_server;<\/code><\/pre>\n<p>\uc774\ub807\uac8c \ubc14\uafd4\uc8fc\uc5c8\ub2e4\uace0 \ud574\ub3c4 \ub2e4\uc2dc nignX\ub9cc \uc7ac\uc2dc\uc791 \ud558\uae34 \ud798\ub4e4\ub2e4.<br \/>\uc774\ub7f4\ub54c\ub294 \uac15\uc81c\ub85c 80\ubc88 \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \ud504\ub85c\uc138\uc2a4\ub97c \ub2e4 \uc8fd\uc774\uace0 \uc7ac\uc2dc\uc791\uc744 \uc2dc\ud0a8\ub2e4.<\/p>\n<pre><code class=\"language-\">sudo fuser -k 80\/tcp\nsudo service nginx restart<\/code><\/pre>\n<p><code class=\"language-\"><\/code><\/p>\n<p><code>\r\n<div id=\"sb_instagram\"  class=\"sbi sbi_mob_col_1 sbi_tab_col_2 sbi_col_5 sbi_width_resp\" style=\"padding-bottom: 10px;width: 100%;\" data-feedid=\"sbi_17841403085886330#10\"  data-res=\"auto\" data-cols=\"5\" data-colsmobile=\"1\" data-colstablet=\"2\" data-num=\"10\" data-nummobile=\"\" data-shortcode-atts=\"{&quot;num&quot;:&quot;10&quot;,&quot;cols&quot;:&quot;5&quot;}\"  data-postid=\"1952\" data-locatornonce=\"4352062786\" data-sbi-flags=\"favorLocal\">\r\n\t\r\n    <div id=\"sbi_images\"  style=\"padding: 5px;\">\r\n\t\t    <\/div>\r\n\r\n\t<div id=\"sbi_load\" >\r\n\r\n\t\r\n\t\t\t<span class=\"sbi_follow_btn\">\r\n        <a href=\"https:\/\/www.instagram.com\/17841403085886330\/\" target=\"_blank\" rel=\"nofollow noopener\">\r\n            <svg class=\"svg-inline--fa fa-instagram fa-w-14\" aria-hidden=\"true\" data-fa-processed=\"\" aria-label=\"Instagram\" data-prefix=\"fab\" data-icon=\"instagram\" role=\"img\" viewBox=\"0 0 448 512\">\n\t                <path fill=\"currentColor\" d=\"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z\"><\/path>\n\t            <\/svg>            <span>Follow on Instagram<\/span>\r\n        <\/a>\r\n    <\/span>\r\n\t\r\n<\/div>\r\n\r\n\t    <span class=\"sbi_resized_image_data\" data-feed-id=\"sbi_17841403085886330#10\" data-resized=\"[]\">\n\t<\/span>\n\t<\/div>\r\n\r\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6b0\ubd84\ud22c 20.04\ub97c \uc0ac\uc6a9\ud55c \uc774\ud6c4\uc5d0 nginX \uc124\uc815\uc744 \ubc14\uafbc \ud6c4 nginX\ub97c \uc7ac\uc2dc\uc791 \uc2dc\ud0a4\uba74 \ud56d\uc0c1 \uc5d0\ub7ec\uac00 \ud280\uc5b4\ub098\uc654\ub2e4. systemctl status nginx.service \ub85c \ud655\uc778\uc744 \ud574\ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud669\uc774 \ubc1c\uc0dd\ud55c\ub2e4. \uc774\uac8c \ubb34\uc2a8 \uc0c1\ud669\uc778\uac00 \uc2f6\uc5b4\uc11c \ucc3e\uc544\ubd24\ub354\ub2c8 80\ubc88 \ud3ec\ud2b8\uc758 \uc911\ubcf5\uc0ac\uc6a9\uc73c\ub85c \uc778\ud55c \uc5d0\ub7ec. \ubcf4\ud1b5 \uc778\ud130\ub137\uc5d0\uc11c\ub294 \uac19\uc740 80\ubc88 \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \uc544\ud30c\uce582 \uc11c\ubc84\ub97c \uc8fd\uc774\uba74 \ub41c\ub2e4\uc9c0\ub9cc, \ub098\ub294 Apache2 \uc6f9\uc11c\ubc84\ub294 \uc124\uce58\ub3c4 \ud558\uc9c0 \uc54a\ub294\ub2e4.<br \/>\n\uc5b4\ub835\uc0ac\ub9ac \ucc3e\uc544\uc11c \ud574\uacb0\ud55c \uc694\uc778\uc740 IPv6 \ub54c\ubb38&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1953,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9,46],"tags":[37,44,45,479],"_links":{"self":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1952"}],"collection":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1952"}],"version-history":[{"count":0,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1952\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/media\/1953"}],"wp:attachment":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}