AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1033619

Nate's questions

Martin Hope
Nate
Asked: 2020-09-03 08:14:26 +0800 CST

连接期间超时(可能是防火墙问题)Apache2 Ubuntu 20.04 服务器,Certbot

  • 0

我的域名是:
sturtz.ml.
我运行了这个命令:
certbot
它产生了这个输出:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: sturtz.ml
2: cloud.sturtz.ml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for cloud.sturtz.ml
http-01 challenge for sturtz.ml
Waiting for verification...
Challenge failed for domain cloud.sturtz.ml
Challenge failed for domain sturtz.ml
http-01 challenge for cloud.sturtz.ml
http-01 challenge for sturtz.ml
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: cloud.sturtz.ml
   Type:   connection
   Detail: Fetching
   http://cloud.sturtz.ml/.well-known/acme-challenge/a5xmyvF4-GcxjiNnl-fo_jiVuGoniwIwubkoFD63xQ8:
   Timeout during connect (likely firewall problem)

   Domain: sturtz.ml
   Type:   connection
   Detail: Fetching
   http://sturtz.ml/.well-known/acme-challenge/uqLWHSnLvl6T_aqioj4wMvFhM7tftTk3RVsTa0FnhFI:
   Timeout during connect (likely firewall problem)

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.
My web server is (include version):

服务器版本:
Apache/2.4.41 (Ubuntu)。

我的网络服务器运行的操作系统是(包括版本):
Ubuntu Server 20.04

我的客户端版本是(例如,如果您正在使用 Certbot 的输出certbot --version)certbot-auto --version:
certbot 1.7.0。

ip address

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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:23:24:08:58:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s25
       valid_lft 81865sec preferred_lft 81865sec
    inet6 2604:99c0:8:2fe6:cff:f4b1:8ace:8064/64 scope global temporary dynamic 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 2604:99c0:8:2fe6:223:24ff:fe08:581f/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 fe80::223:24ff:fe08:581f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: ens2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1b:21:bf:e7:28 brd ff:ff:ff:ff:ff:ff
    inet 169.254.38.166/16 brd 169.254.255.255 scope link noprefixroute ens2
       valid_lft forever preferred_lft forever
    inet6 2604:99c0:8:2fe6:287b:327f:9773:771f/64 scope global temporary dynamic 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 2604:99c0:8:2fe6:21b:21ff:febf:e728/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 fe80::21b:21ff:febf:e728/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

sudo lsof -iTCP -sTCP:LISTEN -P

COMMAND    PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd-r  755 systemd-resolve   13u  IPv4  26099      0t0  TCP localhost:53 (LISTEN)
cupsd      771            root    7u  IPv6  30989      0t0  TCP ip6-localhost:631 (LISTEN)
cupsd      771            root    8u  IPv4  30990      0t0  TCP localhost:631 (LISTEN)
named      873            bind   22u  IPv4  30300      0t0  TCP localhost:953 (LISTEN)
named      873            bind   26u  IPv4  30129      0t0  TCP localhost:53 (LISTEN)
named      873            bind   27u  IPv4  30129      0t0  TCP localhost:53 (LISTEN)
named      873            bind   28u  IPv4  30129      0t0  TCP localhost:53 (LISTEN)
named      873            bind   32u  IPv6  30749      0t0  TCP ip6-localhost:53 (LISTEN)
named      873            bind   33u  IPv6  30749      0t0  TCP ip6-localhost:53 (LISTEN)
named      873            bind   34u  IPv6  30749      0t0  TCP ip6-localhost:53 (LISTEN)
named      873            bind   35u  IPv6  30301      0t0  TCP ip6-localhost:953 (LISTEN)
named      873            bind   38u  IPv6  30520      0t0  TCP [fe80::223:24ff:fe08:581f]:53 (LISTEN)
named      873            bind   39u  IPv6  30520      0t0  TCP [fe80::223:24ff:fe08:581f]:53 (LISTEN)
named      873            bind   40u  IPv6  30520      0t0  TCP [fe80::223:24ff:fe08:581f]:53 (LISTEN)
named      873            bind   45u  IPv4  30704      0t0  TCP sturtz001:53 (LISTEN)
named      873            bind   46u  IPv4  30704      0t0  TCP sturtz001:53 (LISTEN)
named      873            bind   47u  IPv4  30704      0t0  TCP sturtz001:53 (LISTEN)
named      873            bind   50u  IPv4  32956      0t0  TCP sturtz001.local:53 (LISTEN)
named      873            bind   51u  IPv4  32956      0t0  TCP sturtz001.local:53 (LISTEN)
named      873            bind   52u  IPv4  32956      0t0  TCP sturtz001.local:53 (LISTEN)
mysqld     946           mysql   26u  IPv4  31345      0t0  TCP localhost:3306 (LISTEN)
sshd      1320            root    3u  IPv4  34564      0t0  TCP *:22 (LISTEN)
sshd      1320            root    4u  IPv6  34566      0t0  TCP *:22 (LISTEN)
apache2   1336            root    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   1336            root    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)
miniserv. 1479            root    5u  IPv4  37015      0t0  TCP *:10000 (LISTEN)
apache2   2567        www-data    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   2567        www-data    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)
apache2   2568        www-data    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   2568        www-data    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)
apache2   2569        www-data    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   2569        www-data    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)
apache2   2570        www-data    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   2570        www-data    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)
apache2   2571        www-data    4u  IPv6  34789      0t0  TCP *:80 (LISTEN)
apache2   2571        www-data    6u  IPv6  34793      0t0  TCP *:443 (LISTEN)

路由器状态页面 在此处输入图像描述 我在 DMZ,我已经关闭了 ufw netstat -pant

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      873/named           
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      966/tor             
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      946/mysqld          
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      1479/perl           
tcp        0      0 169.254.38.166:53       0.0.0.0:*               LISTEN      873/named           
tcp        0      0 192.168.1.8:53          0.0.0.0:*               LISTEN      873/named           
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      873/named           
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      755/systemd-resolve 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1320/sshd: /usr/sbi 
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      771/cupsd           
tcp        0      0 192.168.1.8:48794       35.224.99.156:80        TIME_WAIT   -                   
tcp        0    248 192.168.1.8:22          192.168.1.6:49682       ESTABLISHED 1412/sshd: nsturtz  
tcp6       0      0 ::1:953                 :::*                    LISTEN      873/named           
tcp6       0      0 :::443                  :::*                    LISTEN      1336/apache2        
tcp6       0      0 :::80                   :::*                    LISTEN      1336/apache2        
tcp6       0      0 fe80::223:24ff:fe08::53 :::*                    LISTEN      873/named           
tcp6       0      0 ::1:53                  :::*                    LISTEN      873/named           
tcp6       0      0 :::22                   :::*                    LISTEN      1320/sshd: /usr/sbi 
tcp6       0      0 ::1:631                 :::*                    LISTEN      771/cupsd   

这是我的服务器注意到的 IP 地址列表,(我从登录中获得)

  IPv4 address for enp0s25: 192.168.1.8
  IPv6 address for enp0s25: 2604:99c0:8:2fe6:cff:f4b1:8ace:8064
  IPv6 address for enp0s25: 2604:99c0:8:2fe6:223:24ff:fe08:581f
  IPv4 address for ens2:    169.254.38.166
  IPv6 address for ens2:    2604:99c0:8:2fe6:287b:327f:9773:771f
  IPv6 address for ens2:    2604:99c0:8:2fe6:21b:21ff:febf:e728
networking
  • 1 个回答
  • 4349 Views
Martin Hope
Nate
Asked: 2020-08-29 12:08:05 +0800 CST

找不到我的 IPv6

  • 3

我一直有网络问题,现在突然我的 IPv6 没有出现,我的路由器设置为 IPv6,我查看了日志。我正在运行Ubuntu Server 20.04 ip address

root@sturtz001:/etc# ip address
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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:23:24:08:58:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic enp0s25
       valid_lft 86091sec preferred_lft 86091sec
    inet6 fe80::223:24ff:fe08:581f/64 scope link 
       valid_lft forever preferred_lft forever
3: ens2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:1b:21:bf:e7:28 brd ff:ff:ff:ff:ff:ff

cat /etc/netplan/*.yaml

# This is the network config written by 'subiquity'
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp0s25:
       dhcp4: yes
       dhcp6: no
       accept-ra: true
    ens2:
       dhcp4: no
       dhcp6: yes
       accept-ra: true
networking server ipv6 20.04
  • 3 个回答
  • 240 Views
Martin Hope
Nate
Asked: 2020-08-27 11:51:47 +0800 CST

Ubuntu存档是否已关闭

  • 0

我一直无法获取

http://us.archive.ubuntu.com/ubuntu/pool/universe/a/autolog/autolog_0.40+debian-3_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'

这只是我还是其他人有这个问题?

server apt archive internet 20.04
  • 1 个回答
  • 2037 Views
Martin Hope
Nate
Asked: 2020-08-27 10:20:37 +0800 CST

重启后 Ubuntu 服务器超慢

  • 0

我的 Ubuntu Server 20.04 一直运行得非常快,直到大约 10-15 分钟前重新启动,在撰写本文时,关闭大约需要 3-5 分钟,重新启动大约需要 1-3 分钟,现在我所做的一切超级慢,我的网站没有加载,运行大约需要 5-10 秒ls我正在寻找方向,我有一个很好的内存,大约 8GB,我有 50GB 的 SWAP 空间,我还有 2 个硬盘和 1 个固态硬盘。任何指导都会有所帮助!谢谢你。如果您需要/想要任何日志或文件,我将非常乐意将它们提供给您。

最佳


top - 19:42:00 up  1:43,  2 users,  load average: 0.40, 0.44, 0.57
Tasks: 216 total,   1 running, 215 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us,  1.7 sy,  0.0 ni, 93.3 id,  4.0 wa,  0.0 hi,  0.2 si,  0.0 st
MiB Mem :   7833.5 total,   4891.3 free,   1260.4 used,   1681.8 buff/cache
MiB Swap:  65536.0 total,  64037.3 free,   1498.7 used.   6287.4 avail Mem 
 Unknown command - try 'h' for help 
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                             
   2835 root      20   0  437496   3492   2036 S   3.0   0.0   2:17.34 ebpf.plugin                                                                                                                         
   2836 netdata   20   0   55524   5244   2008 S   2.0   0.1   1:31.61 apps.plugin                                                                                                                         
   2618 netdata   20   0  343024  87172   4060 S   1.0   1.1   0:57.31 netdata                                                                                                                             
    923 root      20   0  838872  16224   6192 S   0.3   0.2   0:12.16 f2b/server                                                                                                                          
   1066 mysql     20   0 1736500  48264   9200 S   0.3   0.6   5:17.49 mysqld                                                                                                                              
   2841 netdata   20   0  725444  11980   5240 S   0.3   0.1   1:24.26 go.d.plugin                                                                                                                         
  11134 root      20   0       0      0      0 I   0.3   0.0   0:00.07 kworker/1:3-events                                                                                                                  
      1 root      20   0  168612   9160   6308 S   0.0   0.1   0:03.88 systemd                                                                                                                             
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd                                                                                                                            
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                                                                              
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                                                                          
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-kblockd                                                                                                                
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                                                                        
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.79 ksoftirqd/0                                                                                                                         
     10 root      20   0       0      0      0 I   0.0   0.0   0:01.32 rcu_sched                                                                                                                           
     11 root      rt   0       0      0      0 S   0.0   0.0   0:00.02 migration/0                                                                                                                         
     12 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/0                                                                                                                       
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                                                                             
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1                                                                                                                             
     16 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/1                                                                                                                       
     17 root      rt   0       0      0      0 S   0.0   0.0   0:00.31 migration/1                                                                                                                         
     18 root      20   0       0      0      0 S   0.0   0.0   0:00.76 ksoftirqd/1                                                                                                                         
     20 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-kblockd                                                                                                                
     21 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kdevtmpfs                                                                                                                           
     22 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns                                                                                                                               
     23 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_kthre                                                                                                                     
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd                                                                                                                             
     26 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd                                                                                                                          
     27 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper                                                                                                                          
     28 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback                                                                                                                           
     29 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kcompactd0                                                                                                                          
     30 root      25   5       0      0      0 S   0.0   0.0   0:00.00 ksmd                                                                                                                                
     31 root      39  19       0      0      0 S   0.0   0.0   0:00.00 khugepaged                                                                                                                          
    123 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kintegrityd                                                                                                                         
    124 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kblockd                                                                                                                             
    125 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 blkcg_punt_bio                                                                                                                      
    126 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 tpm_dev_wq                                                                                                                          
    127 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 ata_sff                                                                                                                             
    128 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 md                                                                                                                                  
    129 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 edac-poller                                                                                                                         
    130 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 devfreq_wq                                                                                                                          
    131 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 watchdogd                                                                                                                           
    132 root      20   0       0      0      0 S   0.0   0.0   0:08.56 kswapd0                                                                                                                             
    133 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ecryptfs-kthrea                                                                                                                     
    136 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kthrotld                                                                                                                            
    138 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 acpi_thermal_pm                                                                                                                     
    139 root      20   0       0      0      0 S   0.0   0.0   0:00.06 scsi_eh_0                                                                                                                           
    140 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 scsi_tmf_0                                                                                                                          
    141 root      20   0       0      0      0 S   0.0   0.0   0:00.05 scsi_eh_1                                                                                                                           
    142 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 scsi_tmf_1                                                                                                                          
    145 root      20   0       0      0      0 S   0.0   0.0   0:00.02 scsi_eh_2                                                                                                                           
    146 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 scsi_tmf_2                                                                                                                          
    147 root      20   0       0      0      0 S   0.0   0.0   0:00.01 scsi_eh_3                                                                                                                           
    148 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 scsi_tmf_3                                                                                                                          
    150 root      20   0       0      0      0 S   0.0   0.0   0:00.01 scsi_eh_4                                                                                                                           
    151 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 scsi_tmf_4 

系统日志

Aug 26 19:38:49 mail postfix/pickup[7411]: warning: maildrop/4BcGLg6Sy7z1P6tS: error writing 4BcGPj2rstz1P6tV: queue file write error
Aug 26 19:38:50 mail postfix/pickup[7411]: 4BcGPk2sYtz1P6tV: uid=0 from=<root>
Aug 26 19:38:50 mail postfix/cleanup[10988]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:38:50 mail postfix/cleanup[10988]: warning: 4BcGPk2sYtz1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:38:50 mail postfix/pickup[7411]: warning: maildrop/4BcGCl3HKWz1P6tL: error writing 4BcGPk2sYtz1P6tV: queue file write error
Aug 26 19:38:51 mail postfix/pickup[7411]: 4BcGPl2tGlz1P6tV: uid=0 from=<root>
Aug 26 19:38:51 mail postfix/cleanup[10817]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:38:51 mail postfix/cleanup[10817]: warning: 4BcGPl2tGlz1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:38:51 mail postfix/pickup[7411]: warning: maildrop/4BcGJP0tXyz1P6tQ: error writing 4BcGPl2tGlz1P6tV: queue file write error
Aug 26 19:38:52 mail postfix/pickup[7411]: 4BcGPm2v3Sz1P6tV: uid=0 from=<root>
Aug 26 19:38:52 mail postfix/cleanup[10988]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:38:52 mail postfix/cleanup[10988]: warning: 4BcGPm2v3Sz1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:38:52 mail postfix/pickup[7411]: warning: maildrop/4BcGP05FY8z1P6tR: error writing 4BcGPm2v3Sz1P6tV: queue file write error
Aug 26 19:38:53 mail postfix/pickup[7411]: 4BcGPn2vlhz1P6tV: uid=0 from=<root>
Aug 26 19:38:53 mail postfix/cleanup[10817]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:38:53 mail postfix/cleanup[10817]: warning: 4BcGPn2vlhz1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:38:53 mail postfix/pickup[7411]: warning: maildrop/4BcFwl1Dkmz1P6t1: error writing 4BcGPn2vlhz1P6tV: queue file write error
Aug 26 19:38:54 mail postfix/pickup[7411]: 4BcGPp2wX8z1P6tV: uid=0 from=<root>
Aug 26 19:38:54 mail postfix/cleanup[10988]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:38:54 mail postfix/cleanup[10988]: warning: 4BcGPp2wX8z1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:38:54 mail postfix/pickup[7411]: warning: maildrop/4BcFKb1RZqz1P6sP: error writing 4BcGPp2wX8z1P6tV: queue file write error
Aug 26 19:38:55 mail postfix/pickup[7411]: 4BcGPq2xQQz1P6tV: uid=0 from=<root>
Aug 26 19:39:01 mail CRON[11024]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Aug 26 19:39:01 mail CRON[11030]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 26 19:39:02 mail systemd[1]: Starting Clean php session files...
Aug 26 19:39:02 mail systemd[1]: phpsessionclean.service: Succeeded.
Aug 26 19:39:02 mail systemd[1]: Finished Clean php session files.
Aug 26 19:39:43 mail postfix/master[2610]: warning: unix_trigger_event: read timeout for service public/pickup
Aug 26 19:40:01 mail CRON[11166]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
Aug 26 19:40:01 mail CRON[11167]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Aug 26 19:40:43 mail postfix/master[2610]: warning: unix_trigger_event: read timeout for service public/pickup
Aug 26 19:41:01 mail CRON[11214]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Aug 26 19:41:04 mail postfix/proxymap[6357]: warning: connect to mysql server 127.0.0.1:3306: Can't connect to MySQL server on '127.0.0.1' (110)
Aug 26 19:41:04 mail postfix/cleanup[10817]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.sturtz.ml"
Aug 26 19:41:04 mail postfix/cleanup[10817]: warning: 4BcGPq2xQQz1P6tV: sender_bcc_maps map lookup problem -- message not accepted, try again later
Aug 26 19:41:04 mail postfix/pickup[7411]: warning: maildrop/4BcG1N5yKQz1P6t8: error writing 4BcGPq2xQQz1P6tV: queue file write error
Aug 26 19:41:04 mail postfix/pickup[7411]: 4BcGSJ5QClz1P6tV: uid=997 from=<netdata>
Aug 26 19:41:43 mail postfix/master[2610]: warning: unix_trigger_event: read timeout for service public/pickup
Aug 26 19:42:02 mail CRON[11299]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Aug 26 19:42:43 mail postfix/master[2610]: warning: unix_trigger_event: read timeout for service public/pickup
Aug 26 19:43:01 mail CRON[11350]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Aug 26 19:43:15 mail postfix/proxymap[6357]: warning: connect to mysql server 127.0.0.1:3306: Can't connect to MySQL server on '127.0.0.1' (110)
Aug 26 19:43:15 mail postfix/trivial-rewrite[11236]: warning: proxy:mysql:/etc/postfix/mysql/transport_maps_maillist.cf lookup error for "*"

其他要求的数据

root@mail:/var/log# free -h

           total        used        free      shared  buff/cache   available 
Mem:       7.6Gi       1.2Gi       4.8Gi        27Mi       1.6Gi       6.1Gi 
Swap:       63Gi       1.5Gi        62Gi 

root@mail:/var/log# grep -i swap /etc/fstab

 /dev/disk/by-uuid/0edf561f-17da-4d10-89f3-45f3abb4ee82 none swap sw 0 0 
 /swap.img  none    swap    sw  0   0

root@mail:/var/log# ls -al /swap.img

-rw------- 1 root root 4294967296 Aug 25 01:26 /swap.img
server startup reboot 20.04
  • 1 个回答
  • 868 Views
Martin Hope
Nate
Asked: 2020-05-16 12:29:32 +0800 CST

Named.Service 未激活

  • 0

我该如何解决named.service is not active, cannot reload.?的输出/etc/init.d/named status是

● named.service - BIND Domain Name Server
     Loaded: loaded (/lib/systemd/system/named.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-05-15 16:24:00 UTC; 2h 42min ago
       Docs: man:named(8)
    Process: 55460 ExecStart=/usr/sbin/named -f $OPTIONS (code=exited, status=1/FAILURE)
   Main PID: 55460 (code=exited, status=1/FAILURE)

May 15 16:24:00 sturtz named[55460]: listening on IPv4 interface lo, 127.0.0.1#53
May 15 16:24:00 sturtz named[55460]: creating TCP socket: address in use
May 15 16:24:00 sturtz named[55460]: listening on IPv4 interface enp0s25, 192.168.0.5#53
May 15 16:24:00 sturtz named[55460]: creating TCP socket: address in use
May 15 16:24:00 sturtz named[55460]: unable to listen on any configured interfaces
May 15 16:24:00 sturtz named[55460]: loading configuration: failure
May 15 16:24:00 sturtz named[55460]: exiting (due to fatal error)
May 15 16:24:00 sturtz systemd[1]: named.service: Main process exited, code=exited, status=1/FAILURE
May 15 16:24:00 sturtz systemd[1]: named.service: Failed with result 'exit-code'.
May 15 19:02:52 sturtz systemd[1]: named.service: Unit cannot be reloaded because it is inactive.

我无法弄清楚错误或如何解决它。我正在运行 Ubuntu Server 20.04 LTS,我昨天安装了它,我在这里询问了 Bind9 设置 当我运行时sudo ss -tulpn | grep :53:

sudo: unable to resolve host sturtz: Name or service not known
udp     UNCONN   0        0                                 192.168.0.5:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=30))                                              
udp     UNCONN   0        0                                 192.168.0.5:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=31))                                              
udp     UNCONN   0        0                                   127.0.0.1:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=24))                                              
udp     UNCONN   0        0                                   127.0.0.1:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=25))                                              
udp     UNCONN   0        0                               127.0.0.53%lo:53                                           0.0.0.0:*                                   users:(("systemd-resolve",pid=826,fd=12))                                      
udp     UNCONN   0        0                                     0.0.0.0:5353                                         0.0.0.0:*                                   users:(("mdns-publisher",pid=1229,fd=5))                                       
udp     UNCONN   0        0                                       [::1]:53                                              [::]:*                                   users:(("named",pid=34374,fd=36))                                              
udp     UNCONN   0        0                                       [::1]:53                                              [::]:*                                   users:(("named",pid=34374,fd=35))                                              
udp     UNCONN   0        0          [fe80::223:24ff:fe08:581f]%enp0s25:53                                              [::]:*                                   users:(("named",pid=34374,fd=40))                                              
udp     UNCONN   0        0          [fe80::223:24ff:fe08:581f]%enp0s25:53                                              [::]:*                                   users:(("named",pid=34374,fd=41))                                              
udp     UNCONN   0        0                                        [::]:5353                                            [::]:*                                   users:(("mdns-publisher",pid=1229,fd=6))                                       
tcp     LISTEN   0        10                                192.168.0.5:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=34),("named",pid=34374,fd=33),("named",pid=34374,fd=32))
tcp     LISTEN   0        10                                  127.0.0.1:53                                           0.0.0.0:*                                   users:(("named",pid=34374,fd=29),("named",pid=34374,fd=28),("named",pid=34374,fd=27))
tcp     LISTEN   0        4096                            127.0.0.53%lo:53                                           0.0.0.0:*                                   users:(("systemd-resolve",pid=826,fd=13))                                      
tcp     LISTEN   0        10         [fe80::223:24ff:fe08:581f]%enp0s25:53                                              [::]:*                                   users:(("named",pid=34374,fd=44),("named",pid=34374,fd=43),("named",pid=34374,fd=42))
tcp     LISTEN   0        10                                      [::1]:53                                              [::]:*                                   users:(("named",pid=34374,fd=39),("named",pid=34374,fd=38),("named",pid=34374,fd=37))

在此处输入图像描述

server services bind 20.04
  • 1 个回答
  • 2437 Views
Martin Hope
Nate
Asked: 2020-04-21 06:33:38 +0800 CST

MYSQL 错误:13(权限被拒绝)

  • 9

我得到 *Job for mysql.service failed 因为控制进程以错误代码退出。

See "systemctl status mysql.service" and "journalctl -xe" for details.* 

当我运行该命令时,我得到

● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-04-20 09:32:04 CDT; 19s ago
  Process: 7287 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
  Process: 7295 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
 Main PID: 7295 (code=exited, status=1/FAILURE)
   Status: "Server startup in progress"
    Error: 13 (Permission denied)

Apr 20 09:32:04 sturtz.ml systemd[1]: mysql.service: Service RestartSec=100ms expired, scheduling restart.
Apr 20 09:32:04 sturtz.ml systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Apr 20 09:32:04 sturtz.ml systemd[1]: Stopped MySQL Community Server.
Apr 20 09:32:04 sturtz.ml systemd[1]: mysql.service: Start request repeated too quickly.
Apr 20 09:32:04 sturtz.ml systemd[1]: mysql.service: Failed with result 'exit-code'.
Apr 20 09:32:04 sturtz.ml systemd[1]: Failed to start MySQL Community Server.*
mysql 19.10
  • 2 个回答
  • 18267 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve