나 여기 처음이야도쿠그리고nginx서버, 로컬에서 서버를 설정하려고 합니다리눅스 우분투 20.04다음과 같은 것을 사용하는 대신 테스트 목적으로헤르츠너(클라우드)또는 DigitalOcean(포함여러 라이브러리 이미지필요한 것보다 오래된 Dokku 버전이므로 불필요한 금융 비용이 발생할 수 있습니다.
/etc/hosts
좀 더 정확하게 말하면 내 파일 에 도메인 주소를 다음과 같이 설정하려고 합니다 .고쳐 쓰다dokku.me
이는 도메인 과 관련이 있습니다 ):
127.0.0.1 localhost
188.x.xx.xxx domain.com
10.0.0.2 dokku.me
이것을 따라Dokku 설정 튜토리얼다음 명령 중 하나를 전달합니다.
$ dokku domains:set-global localhost
$ dokku domains:set-global domain.com
하지만 생성된 앱을 표시하기 위해 다음 명령을 실행하면 다음과 같습니다 djangotutorial
.
$ dokku config:show djangotutorial
...이것을 출력으로 얻습니다.
=====> djangotutorial env vars
NO_VHOST: 1
거기서부터 다음 명령(원격 서버로 푸시)을 실행할 때까지 언급된 튜토리얼의 모든 것을 정상적으로 실행했습니다.
$ git push dokku main
...다음 메시지가 나타납니다.
ssh: connect to host domain.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
업데이트 #1
출력 host domain.com
:
domain.com has address 188.x.xx.xxx
domain.com mail is handled by 10 mx.domain.com.
출력 ping -c 10 domain.com
:
PING domain.com (188.x.xx.xxx) 56(84) bytes of data.
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=1 ttl=63 time=17.4 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=2 ttl=63 time=9.22 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=3 ttl=63 time=1.88 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=4 ttl=63 time=4.12 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=5 ttl=63 time=1.87 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=6 ttl=63 time=1.43 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=7 ttl=63 time=2.77 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=8 ttl=63 time=3.60 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=9 ttl=63 time=2.06 ms
64 bytes from domain.com (188.x.xx.xxx): icmp_seq=10 ttl=63 time=3.95 ms
명령 출력 traceroute domain.com
:
traceroute to domain.com (188.x.xx.xxx), 30 hops max, 60 byte packets
1 router.lan (192.168.ab.x) 7.239 ms 7.141 ms 7.148 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
출력 ip addr
명령:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 4c:ed:fb:95:d2:90 brd ff:ff:ff:ff:ff:ff
3: wlx048d3814ce5c: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 04:8d:38:14:ce:5c brd ff:ff:ff:ff:ff:ff
inet 192.168.ab.xyz/24 brd 192.168.ab.qyy scope global dynamic noprefixroute wlx048d3814ce5c
valid_lft 4694sec preferred_lft 4694sec
inet6 fe80::888c:74c6:b7d7:2de0/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: br-cac2c9a0fe00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:23:36:d3:17 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-cac2c9a0fe00
valid_lft forever preferred_lft forever
inet6 fe80::42:23ff:fe36:d317/64 scope link
valid_lft forever preferred_lft forever
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:f3:02:02:63 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:f3ff:fe02:263/64 scope link
valid_lft forever preferred_lft forever
7: veth374c258@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-cac2c9a0fe00 state UP group default
link/ether 46:ca:a7:33:95:0f brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::44ca:a7ff:fe33:950f/64 scope link
valid_lft forever preferred_lft forever
9: veth264cbc8@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
link/ether 66:1d:5e:0e:05:96 brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet6 fe80::641d:5eff:fe0e:596/64 scope link
valid_lft forever preferred_lft forever
11: vethad55888@if10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-cac2c9a0fe00 state UP group default
link/ether 9e:80:5a:9c:a0:33 brd ff:ff:ff:ff:ff:ff link-netnsid 2
inet6 fe80::9c80:5aff:fe9c:a033/64 scope link
valid_lft forever preferred_lft forever
13: veth1584b7e@if12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-cac2c9a0fe00 state UP group default
link/ether c2:53:b9:e6:02:3d brd ff:ff:ff:ff:ff:ff link-netnsid 3
inet6 fe80::c053:b9ff:fee6:23d/64 scope link
valid_lft forever preferred_lft forever
14: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
15: vboxnet1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:01 brd ff:ff:ff:ff:ff:ff
16: vboxnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:02 brd ff:ff:ff:ff:ff:ff
17: vboxnet3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:03 brd ff:ff:ff:ff:ff:ff
18: vboxnet4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 0a:00:27:00:00:04 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global vboxnet4
valid_lft forever preferred_lft forever
inet6 fe80::800:27ff:fe00:4/64 scope link
valid_lft forever preferred_lft forever
dsfsdf
명령 출력 route
:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default router.lan 0.0.0.0 UG 600 0 0 wlx048d3814ce5c
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet4
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 wlx048d3814ce5c
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-cac2c9a0fe00
192.168.ab.t 0.0.0.0 255.255.255.0 U 600 0 0 wlx048d3814ce5c
노트188.x.xx.xxx
: 등 일부 IP 주소에 별칭을 사용했습니다 192.168.ab.t
.
===============업데이트 #1::끝=============
언급된 정보를 사용하여 이를 달성할 수 있는 방법이 있습니까?
어떤 조언이나 도움이라도 대단히 감사하겠습니다. 미리 감사드립니다.