Articles of ubuntu 16.04的

/ var / log / faillog的内容由重复的“@ ^”组成

当我尝试使用nano /var/log/faillog查看我的faillog时,日志文件会nano /var/log/faillog填充“@ ^”。 (我也尝试用sudo运行命令,但文件的内容不会改变) 什么会导致faillog具体填写这两个字符? 我运行的是Ubuntu Server 16.04 LTS

如果/ var / lib / mysql中有任何内容,则MySQL apt / chef安装将失败

我正在使用大厨在Ubuntu 16.04上安装默认的mysql-server软件包。 我在一个没有安装MySQL的服务器上执行,但是已经把/var/lib/mysql设置为已安装的驱动器。 因此, /var/lib/mysql有一个lost+found目录。 如果我使用非常基本的厨师安装MySQL: package 'mysql-server' 当/var/lib/mysql/lost+found存在时,出现错误: Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.7 (–configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent […]

Apache fails启动,已经运行,但没有machid pid文件?

每当我尝试启动/重新启动我的apache2服务使用systemctl我得到一个关于它已经运行的错误,但没有加工我的pid file 。 ● apache2.service – LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Mon 2017-01-09 21:42:38 EST; 16s ago Docs: man:systemd-sysv-generator(8) Process: 18354 ExecStop=/etc/init.d/apache2 stop (code=exited, status=1/FAILURE) Process: 18337 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) Jan 09 21:42:38 username apache2[18337]: Action 'start' failed. Jan 09 […]

两个用户的不同的Linux权限

我有一个小问题,我似乎无法做到。 我有user1和user2和一个文件夹,但我想要user1有完全访问和user2有只读访问.. 在线检查并查看当前的权限我可以看到你可以有一个用户和一个组,但我不明白如何将这两个angular色分开? 这甚至有可能吗? 我正在运行Ubuntu服务器,但不知道这是有所作为。

添加第二个Ubuntu Ubuntu会导致networking重启失败

我正在运行一个Ubuntu的16.04 LTS盒,并试图获得第二个网卡。 这里是/ etc / network / interfacesconfiguration: 源/etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback #nic1 auto et6543 iface et6543 inet static address 10.16.15.100 netmask 255.255.255.0 gateway 10.16.15.1 dns-nameservers 10.16.15.141 dns-domain example.ext #nic2 auto et1234 iface et1234 inet static address 10.16.16.100 netmask 255.255.255.0 gateway 10.16.16.1 dns-nameservers 10.16.15.141 dns-domain example.ext 当我添加第二个nic信息时,我尝试重新启动networking服务时出现故障… […]

ssh,代理转发几天后停止工作…

我几个星期以来一直在面对一个有趣的问题。 我们的部分车队只能通过跳转主机到达。 在过去,我没有任何问题,使用ssh -A从我的工作站login到跳转主机,并保持一个会话很长一段时间[是的,我知道这是不好的做法,不是在一个恶习= }],并从那里连接到其他机器w / o密码input按预期。 现在每隔一段时间去我的uxterm与主动会话跳转主机给我一个 Permission denied (publickey) 如果我断开连接,并且没有重新启动代理程序再次连接到跳转主机,则所有的操作都和以前一样。 我如何诊断那里发生了什么? 额外信息:我的工作站是Ubuntu 16.04,跳转主机是14.04,最近从12.04升级。

Azure虚拟机Ubuntu,如何在ubuntu防火墙中启用SSH端口(22)现在我无法使用SSH访问我的虚拟机

我有azure色的ubuntu虚拟机运行。 错误的是,我使用这个命令启用ubuntu防火墙 sudo ufw启用 我忘了在Ubuntu防火墙中启用SSH端口(22) 现在我无法使用SSH访问我的虚拟机。 现在做什么

systemctl:将控制台消息写入特定文件

我有一个configurationsystemctl的服务。 这是configuration文件: [Unit] Description=eureka-server After=syslog.target [Service] User=bhushanp #User=root ExecStart=/usr/bin/java -jar /home/bhushanp/apps/eureka_server.jar > /var/log/es.log 2>>&1 SuccessExitStatus=143 [Install] WantedBy=multi-user.target 但是不把日志写入/var/log/es.log文件。 任何帮助表示赞赏。

为什么我无法find有根文件正在编辑的纳米进程的pid?

我正在尝试使用nano编辑文件,每当我打开文件进行编辑时,都会给我下面的消息: File /path/to/file is being edited (by root with nano 2.5.3. PID 12345); continue? 然而,当我grep的PID或列出所有进程时,我无法find进程列表中的进程ID。 我不确定如何去做到这一点。 我在一个Ubuntu的16.04虚拟机。

sendmail“未知用户”,邮件转发任务

我有一个转发mxlogging的Ubuntu 16.04 Web服务器。 在服务器上,我安装了sendmail。 我有多个虚拟主机runnning。 其中之一是“xxx-tele.com”。 现在我想设置sendmail,发送到[email protected]的所有邮件应该被转发到[email protected],这是我的networking内部不同邮件服务器上的邮箱。 首先我添加了一个/ etc / mail / virtusertable [email protected] [email protected] 并用“makemap hash virtusertable.db <virtusertable”创build了散列文件。 在/etc/mail/sendmail.mc我添加了该行 FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl 我跑了 m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 命令并用“service sendmail reload”重新启动sendmail。 现在,我尝试命令 sendmail -bv [email protected] 我只是得到回应:[email protected] …用户未知 xxx-tele.com被添加到/ etc / hosts和/ etc / mail / local-host-names中 我怎样才能设置sendmail只是转发这个地址,并拒绝所有其他的? 命令:echo'$ = w'| sendmail -bt只是返回: ADDRESS TEST […]