Articles of ubuntu 16.04的

在16.04发出重新启动networking服务的问题

我在Ubuntu 16.04上为我的专用服务器买了一个新的IP地址,我一直在试图设置它,但是我只是一直遇到一个问题。 即使使用原始configuration,我也无法重新启动networking服务。 这是我通过systemctl status networking.service得到的; systemd[1]: Starting Raise network interfaces… ifup[24985]: RTNETLINK answers: File exists ifup[24985]: Failed to bring up eth0. postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions networking.service: Main process exited, code=exited, status=1/FAILURE Failed to start Raise network interfaces. networking.service: Unit entered failed state. networking.service: Failed with result 'exit-code'. 这里是接口文件的内容(我已经审查了地址当然); auto lo iface lo […]

OpenLDAP作为代理

首先,请注意,我有Linux的经验,但由于某种原因,OpenLDAP代理身份validation让我非常困惑,所以我希望有人可以简单地回答我的问题,以帮助我更好地理解它。 我按照这个教程设置了一个Active Directoryauthentication代理( https://wiki.samba.org/index.php/OpenLDAP_as_proxy_to_AD )。 一些说明: OpenLDAP服务器的IP是10.41.22.103 Windows AD服务器IP是10.41.22.100 OpenLDAPpipe理员帐户是cn = admin,dc = example,dc = com 在教程之后,这里是我修改的文件。 我的slapd.conf文件(/etc/ldap/slapd.conf): ### Schema includes #### include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/misc.schema include /etc/ldap/schema/nis.schema ## Module paths ############################################################## modulepath /usr/lib/ldap moduleload back_ldap moduleload rwm # Main settings ############################################################### pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args ### Database definition (Proxy to […]

Postfix不支持的字典types:mysql

基本上我按照这个教程: https : //www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql 我的问题与第一次testingPostfix陈述。 postconf -m postconf: warning: /etc/postfix/dynamicmaps.cf: file is owned or writable by non-root users — skipping this file btree cidr environ fail hash inline internal memcache nis pipemap proxy randmap regexp socketmap static tcp texthash unionmap unix 这看起来像我忘了安装postfix-mysql,但是当我尝试再次安装我得到: postfix-mysql is already the newest version (3.1.0-3). postmap -q example.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf postmap: warning: […]

`ls`命令无限期地挂在azure文件存储共享中的某个目录中

按照此操作,我在Ubuntu 16.04 VM中安装了一个azure色的文件存储共享。 一切似乎都很好。 所以我运行一些产生大量数据的进程,例如每次运行10k个文件,将它们收集到每个运行的目录中,然后移动已经挂载存储的目录。 这些目录中有些是破损的,如果我运行一个ls ,命令会无限期挂起。 任何提示? 提前致谢。 编辑build议由安德鲁在评论中,我运行一个strace命令的ls命令和输出如下: 08:54:14.405929 execve("/bin/ls", ["ls"], [/* 29 vars */]) = 0 08:54:14.406240 brk(NULL) = 0x9b1000 08:54:14.406325 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 08:54:14.406422 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0a669d000 08:54:14.406487 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 08:54:14.406536 […]

Nginx反向代理多个服务到多个端口

我昨天了解了Nginx,为了更加准确,我第一次了解了以下url上的所有主题: 初始服务器设置与Ubuntu 16.04 如何在ubuntu 16.04上安装和保护mongodb 如何在Ubuntu 16.04上添加交换空间 如何在Ubuntu上备份还原和迁移MongoDB数据库 如何在ubuntu 16.04上安装Nginx 如何保护nginx与我们的encryption在Ubuntu 16.04 如何在Ubuntu 16.04上安装节点js 如何在ubuntu 16.04上设置节点js应用程序进行生产 但我仍然在这里卡住, 我在哪里 我正在编辑这个Nginxconfiguration文件: /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name mysite.mydomain.com; ssl_dhparam /etc/ssl/certs/dhparam.pem; location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } listen 443 […]

服务器不会向一个ISP返回一些请求

我有一个Linode服务器,将不会返回到我平常的ISP的随机GET请求(但从来没有被卡住每次相同的一个)。 如果我切换ISP或使用Opera VPN ,一切运作良好。 Linode说,他们看起来都很好。 服务器的资源很好(这是一个开发服务器,目前只用于testing,非常轻的stream量和开销)。 他们说要检查我的ISP。 我的ISP说,他们都看起来不错,但他们会让工程师看看它。 正如我期待的那样,我们从ISP那里找不到任何答案,我试图find客观的证据来certificate我的诊断非常有限。 我掸掉了Wireshark ,开始诊断。 如果我使用ISP的问题,从浏览器的angular度来看,这有点杂乱无章。 有时一个页面加载正常,有时加载正常,但其他资产将无法加载(CSS,JS,JPEG等)。 有时,页面本身不会加载,并且无限期地保持“加载”,没有服务器响应。 诊断: 在Wireshark中 http.time > 1证实了这个问题没有太多的超时或者长的加载时间,更多的是请求加载或者不加载。 我的标题没有显示任何exception,例如: GET /theme/css/style.css HTTP/1.1 Host:site.com Accept:text/css,*/*;q=0.1 Accept-Language:en-ie Accept-Encoding:gzip, deflate Connection:keep-alive Pragma:no-cache User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30 Referer:http%3a//site.com/section/ DNT:1 Cache-Control:no-cache 当我使用Wireshark进行捕捉时,浏览器中的请求停止时,我没有看到太多反馈。 不过,上次我尝试了一下,我得到了一个重复的请求: localhost server TCP 66 [TCP Retransmission] 61162 […]

IPv6连接会随着时间停止工作

我为大多数服务器configuration了IPv6,这些服务器都在VMWare ESXi 6.5上运行Ubuntu 16.04 LTS作为虚拟机,但经过一段时间(有时几个小时,有时甚至几天),我需要重新设置接口以使其再次工作。 重置命令 sudo su && ifdown eth0 && ip addr flush dev eth0 && ifup eth0 什么configuration不正确? 的/ etc /networking/接口 # The loopback network interface auto lo iface lo inet loopback iface lo inet6 loopback # The primary network interface auto eth0 iface eth0 inet static address 136.xxx.154.30/24 gateway 136.xxx.154.1 dns-nameservers […]

错误:无效格式(第5行)条目:尝试添加attributypes和objectclasses时,“cn = schema,config”

我正在尝试通过openLDAP实现HP iLO身份validation,为了实现此身份validation,我需要在openldapserver上添加一个attributetype memberof和2个对象类(memberof和user)。 我试图通过ldapmodify命令推送这些元素,但我总是得到以下错误: ldapmodify: invalid format (line 6) entry: "cn=schema,config" 这是我使用的ldapmodify命令: sudo ldapmodify -H ldapi:// -Y EXTERNAL -D "cn=schema,cn=config" -f ilo.schema 在ilo.schema文件中,我定义了attributype和objectclasses: dn: cn=schema,cn=config objectClass: olcSchemaConfig changetype: modify add: olcAttributeTypes olcAttributeTypes: ( 1.3.6.1.4.1.15959.9.1.1 NAME 'memberOf' DESC 'Group which user belongs to' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 USAGE userApplications ) – add: olcObjectClasses olcObjectClasses: ( 1.3.6.1.4.1.15959.9.2.1 […]

EC2无法启动,因为挂载 – 没有日志

我有一个EC2托pipe的Ubuntu 16.04服务器,无法启动。 当我查看亚马逊控制台中的日志时,我只能看到黑屏。 当我将磁盘挂载到另一台服务器时,我在fstab中有以下几项: LABEL=cloudimg-rootfs / ext4 defaults,discard 0 0 LABEL=www /home xfs defaults,noatime,nofail 0 2 我在/ var / log / syslog或其他地方找不到任何表示安装错误的条目,但这可能只是我在这个特定领域缺乏知识。 但是,当我从/ etc / fstab删除第二行服务器启动。 一旦它运行,我可以然后安装磁盘: mount /dev/xvdf1 /home 我也在fstab中试过这一行: /dev/xvdf1 /home xfs defaults,noatime,nofail 0 2 但是我得到了相同的结果。

snmpget错误:“此OID上的此代理上没有此类对象”

我想创build我自己的MIB。 我几个星期以来一直在努力。 我遵循本教程,并使用net-snmp 5.7.3 。 我正在做的是: 我的设置:我有两个虚拟机,都是Ubuntu 16 ,一个是IP:192.168.5.20的snmp-server ,另一个是IP:192.168.5.21的snmp-agent 。 我写了一个MIB,编译好没有任何错误( 这个编译只在代理系统,而不是在服务器上 )。 我已经这样做了: root@snmp-agent:# MIBS=+MAJOR-MIB root@snmp-agent:# MIBS=+DEPENDENT-MIB root@snmp-agent:# export MIBS root@snmp-agent:# MIBS=ALL 我的MIB文件在这个path中: /usr/share/snmp/mibs这是默认的searchpath。 我已经编译了它,并使用以下命令成功生成了.c和.h文件: mib2c -c mib2c.int_watch.conf objectName 。 而不是像这样configurationsnmp: root@snmp-agent:# ./configure –with-mib-modules="objectName" root@snmp-agent:# make root@snmp-agent:# make install 一切正常。 在此之后,当我(代理) snmptranslate我得到的输出为: root@snmp-agent:snmptranslate -IR objectName.0 MAJOR-MIB::objectName.0 并使用命令snmptranslate -On objectName.0我得到的输出为: root@snmp-agent:# snmptranslate -On MAJOR-MIB::objectName.0 […]