Articles of ubuntu 14.04

连接由<ip> closures

我在Ubuntu服务器上。 我正在尝试启用SSH隧道,以便在我的项目中添加git remote。 在我本地的win7机器上,我用PuTTYgen生成密钥对。 我把公钥粘贴在authorized_keys文件中 我将私人PuTTY ppk文件path设置为putty Authconfiguration 当我尝试打开一个远程shell我得到错误Server refused our key 。 检查日志: Connection closed by <ip> [preauth] /var/log/auth.log Connection closed by <ip> [preauth] 。 更多信息: ~/.ssh/authorized-keys有权限664。 该文件被命名为authorized-keys not authorized_keys这可能是一个问题? 我错过了什么?

自动更新ubuntu

我刚刚开始学习Web服务器pipe理。 我注意到,我经常在Ubuntu上得到这个更新消息: xx packages can be updated xx updates are security update 当我看到它时: sudo apt-get update sudo apt-get upgrade 如果这是正确的? 有没有办法自动完成这个任务,也许是在同一个小时的所有日子,或者什么时候有x更新?

绑定挖掘没有答案的www

我正在尝试build立一个域。 它适用于vumila.com,但不适用于www.vumila.com。 这是我的文件: db.vumila.com: $TTL 3h @ IN SOA ns1.vumila.com. admin.vumila.com. ( 3 ; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 day ; @ IN NS ns1.vumila.com. @ IN NS ns2.vumila.com. vumila.com. IN MX 10 […]

apache kerberosauthentication票据在klist下不可见

当我configuration使用kerberos的Apache身份validation。 它工作正常。 它是要求密码并login到网站。 它正在创build一个这样的日志信息。 /var/log/kerberos/krb5kdc.log Jul 03 15:30:03 ashokkrishna-Lenovo-B560 krb5kdc[4060](info): AS_REQ (6 etypes {18 17 16 23 25 26}) 192.168.1.224: NEEDED_PREAUTH: [email protected] for krbtgt/[email protected], Additional pre-authentication required Jul 03 15:30:03 ashokkrishna-Lenovo-B560 krb5kdc[4060](info): AS_REQ (6 etypes {18 17 16 23 25 26}) 192.168.1.224: ISSUE: authtime 1435917603, etypes {rep=18 tkt=18 ses=18}, [email protected] for krbtgt/[email protected] 但是当我打 ashokkrishna@ashokkrishna-Lenovo-B560:~$ klist […]

无法摆脱神秘的内核

刚注意到,尽pipe定期更新了内核,但使用的版本已经过时了: $ uname -a Linux test 2.6.31-302-rs #7 SMP Thu Oct 29 22:57:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux 奇怪的是,这个版本的内核甚至没有被安装: $ dpkg –list | grep linux-image rc linux-image-2.6.32-41-generic 2.6.32-41.90 amd64 Linux kernel image for version 2.6.32 on x86/x86_64 ii linux-image-3.13.0-54-generic 3.13.0-54.91 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP ii linux-image-extra-3.13.0-54-generic […]

如何在检查SSL之前redirect?

我有一个用于我的域名的SSL证书,我们称之为example.com 。 另外我有另一个域名,我们称之为example.net 当我得到域example.net HTTPS请求失败,但example.com它的工作原理。 我想将example.net HTTPS请求redirect到https://example.com 。 注意:它们都在同一台服务器上(Ubuntu 14.04 – Apache 2.4)。 我尝试了example.net的CNAMElogging,将其redirect到example.com,但也失败了(我的浏览器告诉我,证书仅适用于example.com )。 那么该怎么办? 我需要为example.net获得另一个SSL证书吗?

在Ubuntu 14.04.4 LTS上configurationWildfly 10.0.0 Final以监听端口80的方式是什么?

我使用这个脚本在Ubuntu 14.04.4 LTS上安装了Wildfly 10.0.0 Final。 一切看起来工作正常。 我的问题是嗅探端口28080(脚本安装默认),我可以更改为8080更新standalone.xml。 但我想野蛮地听取端口80,但更改standalone.xml使用端口80不起作用。 看起来只有root可以在低于1024的端口上侦听,所以问题是,在Ubuntu服务器上configurationWildfly侦听端口80的首选方法是什么? 我试图使用nginx和工作,但奇怪的是,一些文件,如jboss的默认主页的CSS,找不到。

dist-upgrade在libc6上失败,因为“kernel too old”

我已经尝试过几个小时,通过SSH升级ubuntu服务器14.04到16.04。 服务器托pipe,我没有物理访问它。 直到它更新libc6并popupcurl错误和单个确定button,消息: Kernel version not supported This version of the GNU libc requires kernel version 3.2 or later. Older versions might work but are not officially supported. Please consider upgrading your kernel. Kernel version not supported This version of the GNU libc requires kernel version 3.2 or later. Older versions might work but are […]

MySQL权限错误

看来在Ubuntu 14.04机器上,用户mysql不能访问任何内容。 这不是写日志,也不是读文件。 见证: – bruno():mysql$ cat /etc/passwd | grep mysql mysql:x:116:127:MySQL Server,,,:/nonexistent:/bin/false – bruno():mysql$ sudo mysql_install_db Installing MySQL system tables… 140818 18:16:50 [ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys' 140818 18:16:50 [ERROR] Aborting 140818 18:16:50 [Note] Installation of system tables failed! Examine the logs in /var/lib/mysql for more information. …boilerplate trimmed… – bruno():mysql$ ls -la […]

问:lighttpd使用2GB的ram而空闲的私人页面

我正在运行安装了lighttpd的服务器。 它运行php5-fpm并服务于自己的云服务器。 Ubuntu服务器14.04 lighttpd / 1.4.33(ssl)(Jan 28 2014 17:26:04) – 一个轻快的networking服务器 PHP 5.5.9-1ubuntu4.5(fpm-fcgi)(内置:2014年10月29日11:59:19) server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect" ) server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 index-file.names = ( "index.php", "index.html", "index.lighttpd.html" ) url.access-deny = ( "~", […]