Articles of linux

在Debian8.7-Jessie Linux上安装Certbot时出错获取validation数据

我只是设置我的服务器,我不能让我的configuration与Certbot工作。 它总是一样的。 我尝试了一些不同的configuration,但都没有工作。 这是我的最后一次尝试。 它总是说:“获取validation数据出错”有没有人有一个想法,为什么这不起作用? 完整安装: sudo apt-get update && sudo apt-get upgrade Ign http://ftp.debian.org jessie InRelease […] Processing triggers for initramfs-tools (0.120+deb8u3) … Processing triggers for ca-certificates (20141019+deb8u3) … Updating certificates in /etc/ssl/certs… 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d….done. sudo apt-get install nano Reading package lists… Done […] 0 upgraded, 1 […]

如何在debian上设置exim4 sender_helo_name

我使用exim4邮件服务器在我的VPS上运行的debian 8.9,问题是我可以得到电子邮件,但不能发送邮件,所以当我发送邮件从roundcube到Gmail我得到错误 SMTP错误(550):无法设置发件人(访问被拒绝 – 无效的HELO名称(请参阅RFC2821 4.1.3))。 所以我检查exim4模板并debugging它,发现$ sender_helo_name设置为我的服务器IP地址。 所以我想知道如何设置$ sender_helo_name值到我的网站域 更新exim主日志: 2017-09-28 09:33:56 H=localhost (198.50.220.183) [127.0.0.1] rejected MAIL <[email protected]>: Access denied – Invalid HELO name ( 198.50.220.183) (See RFC2821 4.1.3) 2017-09-28 09:36:23 no host name found for IP address 123.56.151.114 2017-09-28 09:36:24 no host name found for IP address 123.56.151.114 2017-09-28 09:39:01 1dxQbF-0003dy-6j <= [email protected] […]

HTTP到HTTPSredirect失败

当我导航到http://example.com它正确地redirect到https://example.com 。 我遇到的问题是,当我导航到http://example.com/sub/directory/page.htm它redirect到https://example.comsub/directory/page.htm 。 为什么不redirect到https://example.com/sub/directory/page.htm ? 这里是Apache的configuration: <VirtualHost *:80> ServerName example.com Redirect permanent / https://example.com/ </VirtualHost> <IfModule mod_ssl.c> #NameVirtualHost *:443 <VirtualHost *:443> ServerName example.com […] ProxyRequests Off ProxyPass / http://localhost:8444/ ProxyPassReverse / http://localhost:8444/ </VirtualHost> 我正在使用的Apache版本: Server version: Apache/2.4.18 (Ubuntu) Server built: 2017-09-18T15:09:02

Linux – Postfix – 通过ISP阻止端口25发送邮件

我将从最重要的开始 – 我已经阅读/观看了大量的手册,教程,论坛和有关这方面的build议,但是我仍然觉得我不了解整个电子邮件系统的一些重要内容,但同时也是非常简单的,小。 我在Linode购买了VPS服务器; 我已经为邮件系统安装并configuration了postfix,dovecot服务; 我已经正确configurationDNS发送和接收邮件(SPF,DKIM,DMARC,HELO,rDNS,授权给IP和主机名的服务器 – 所有这些都成功configuration和testing通过); 服务器没有被任何垃圾邮件垃圾邮件filter公司列入黑名单。 后缀configuration(主要设置): main.cf mail_owner = postfix myhostname = mail.mywebsite.com mydomain = mywebsite.com myorigin = $mydomain inet_interfaces = all inet_protocols = ipv4 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mynetworks = 127.0.0.0/8 smtpd_banner = $myhostname ESMTP sendmail_path = /usr/sbin/sendmail.postfix smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options […]

iptables显示一个警告消息,但我无法解决它

当我在SSH中input此命令来查看规则时,它会在iptables中返回以下警告消息。 我想知道它是什么以及如何解决它。 iptables -L LOG tcp — anywhere anywhere limit: avg 30/min burst 5 LOG level warning prefix "Firewall: *TCP_IN Blocked* " LOG udp — anywhere anywhere limit: avg 30/min burst 5 LOG level warning prefix "Firewall: *UDP_IN Blocked* " LOG icmp — anywhere anywhere limit: avg 30/min burst 5 LOG level warning prefix "Firewall: […]

如何在Linux系统上同步UID / GID

我的设备机架上有一个很大的NFS共享存储系统。 我的操作是引入一些其他使用NFS系统作为主要生产存储的Linux系统。 有时,存储是共享的,我也希望能够随着项目的进行启动和导入各种虚拟机。 我看到的问题是,NFS不会试图限定其客户端系统用户的身份validation。如果UID = 1234是Alice在一个系统上,另一个使用UID = 1234作为文件系统的Bob,则他们的文件权限与远远相同NFS系统是关心的。 这个问题在NFS世界中通常如何处理?

如何在RHEL7.3机器上设置域名

我现在必须设置域名,当我input下面的命令我越来越nonne [root@username ~]# domainname (none) 但hostname命令给出正确的结果 [root@username ~]# hostname username 我尝试在vim /etc/hosts下面添加 <Server IP> example.com 但即使这个变化不会帮助我。 我正在尝试解决这个问题 https://stackoverflow.com/questions/47454271/olcrootpw-can-only-be-set-when-rootdn-is-under-suffix

Samba服务器不能在启动时启动

我有一个Ubuntu服务器。 我安装了Samba与Windows客户端共享文件,并开始罚款。 我最近添加了一些基于UnionFS的共享,现在samba服务器不会在启动时启动,我必须手动启动它( /etc/init.d/samba start works without errors) 这很烦人,当我不在的时候服务器重新启动的时候会引起问题。 有人可以提出一个想法,为什么不启动和/或给我一个方法来确保它。 编辑:刚刚重新启动。 这是开机的日志。 [2009/05/15 10:04:21, 0] smbd/server.c:main(1260) smbd version 3.3.2 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/05/15 10:04:21, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 – Connection refused [2009/05/15 10:04:21, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 – Connection […]

Linux多显示器设置上的全屏应用程序

什么是最好的/最简单的方法来防止全屏应用程序跨越所有监视器。 在Windows中,全屏应用只能接pipe1台显示器。 我正在使用Twinview的Nvidia驱动程序

几个键盘键在VMWare中不起作用(Host = Linux,Guest = Windows)

我在Ubuntu 8. *和9. *上安装了VMWare Server 2.0,以Windows XP作为访客系统,并且有几个键不起作用。 他们要么什么都不做,要么调用错误的按键。 他们的键是所有箭头键,Windows键,打印屏幕,滚动locking,暂停或中断,插入(Ins),主页,上页(PgUp),下页(PgDn),删除(Del),结束。 我该如何解决?