Articles of ubuntu 12.04

缓慢的sudo和ssmtp(主机文件错误?)

我正在运行Ubuntu Server 12.04.5 LTS,当我键入sudo su ,需要30多秒才能打开shell。 在互联网上search,这个问题似乎与文件/etc/hosts和/etc/hostname 。 这对我来说并不是一个真正的问题,但是这影响了其他程序(尤其是用于从PHP发送邮件的sSMTP),而Apache则给出了经典的“ 无法可靠地确定服务器的完全合格的域名 ”。 所以我检查了主机文件,并纠正它,现在apache错误消失,但其他问题仍然存在。 sudo su现在需要大约10-15秒。 uname -n , hostname和hostname -f是: server.example.com hostname -a输出hostname -a : server /etc/hosts : 127.0.0.1 localhost.localdomain localhost 127.0.1.1 server.example.com server ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 此服务器具有公用IPv4地址, server.example.com的DNSlogging正确。 如果我尝试ping server或ping server.example.com他们按预期工作(parsing为127.0.1.1 ) 服务器也运行openvpnless于10个客户端,但禁用服务没有任何后果。 事情到目前为止: 1)将主机名更改为“本地主机”: 解决了这个问题, 但不能接受 […]

在Ubuntu 12.04中缺lessApache2日志

我configuration了apache2的Ec2实例运行良好,突然间web服务器停止服务页面。 我检查了所有的日志,但没有帮助,或者我可能在这里失去了一些东西。 以下是apache2的错误日志 [Mon Jan 12 18:15:49 2015] [error] [client 76.164.202.114] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:15:49 2015] [error] [client 76.164.202.114] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 18:16:29 2015] [error] [client 114.124.39.172] PHP Notice: Undefined variable: link in /data/html/article_emailconfig.php on […]

未能在Ubuntu 12.04上进行apt-get更新

当我尝试进行apt-get更新时,我总是收到这个错误,所以无法用apt来安装或删除软件 Get:102 http://archive.ubuntu.com precise-updates/universe Translation-en 100% [102 Translation-en bzip2 0 B] [Connecting to archive.ubuntu.com] 7273 B/s 0sbzip2: (stdin) is not a bzip2 file. 100% [98 Translation-en gzip 0 B] [Waiting for headers] 7273 B/s 0sE: Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en.decomp (1) 100% [99 Translation-en gzip 0 B] [Waiting for headers] 14.9 kB/s 0sE: Unable […]

Ubuntu服务器12.04:升级PHP到5.4,现在的网站将无法加载

我只是升级了我的Ubuntu服务器12.04的PHP 5.3到5.4,使用ppa:ondrej/php5-oldstable ppa,但现在我的PHP供电网站不加载(我只是得到一个下载的文件)。 我已经重新启动apache2 ,我的/etc/apache2/mods-available/php5.conf文件如下所示: <IfModule mod_php5.c> AddType application/x-httpd-php .php # AddType application/x-httpd-php-source .phps <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> # SetHandler application/x-httpd-php-source </FilesMatch> # To re-enable php in user directories comment the following lines # (from <IfModule …> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files from […]

无法访问ZFS格式的驱动器(冗余设置)

我把我的重要数据保存在运行Ubuntu 12.04 LTS的机器上的两个镜像(我认为这是正确的术语)。 今天,我无法访问任何数据,“sudo zpool status -x”返回: pool: data state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://zfsonlinux.org/msg/ZFS-8000-8A scan: none requested config: NAME STATE READ WRITE CKSUM data […]

重新加载Freeradius客户端而不重新启动服务

有没有办法重新加载Freeradius客户端configuration而不重新启动服务? 我在用着: Ubuntu Server 12 Freeradius 2.1.10 MySQL v5.5.20 (I'm storing the clients in the "nas" table)

在禁用HW RAID的情况下在Dell R710上安装Ubuntu服务器

我禁用了启用控制器BIOS控制 ,然后从BIOS设置屏幕中禁用硬件RAID,然后使用活动的Ubuntu Desktop 11光盘启动,以根据该页面上的信息清除RAID的元数据。 但是当Ubuntu被加载(GUI)时,我打开terminal并使用sudo发出了os探测命令,它什么也没有返回! 没有驱动器可以看到,所以dmraid命令没有find任何工作! 而当我进入启动屏幕select一个设备启动,我找不到它的菜单中有我的USB的“硬盘驱动器C:”标签。 但现在不见了! 我一直在BIOSconfiguration很多,但我不知道我犯了什么错误。 这完全是关于从Ubuntu安装Ubuntu的磁盘清除所有的RAID数据,以查看磁盘,并继续使用Ubuntu的RAIDconfiguration安装。

如何在MySql 5.5 Ubuntu 12.04中禁用LOCAL INFILE

无法禁用LOCAL INFILE(出于安全原因)在MySQL版本14.14 Distrib 5.5.25a,对于debian-linux-gnu(i686)在Ubuntu 12.04上使用readline 6.2; 这是我的/etc/mysql/my.cnf [client] port = 3306 socket = /var/run/mysqld/mysqld.sock loose-local-infile=0 local-infile=0 [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] local-infile=0 user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking 我做 sudo /etc/init.d/mysql restart mysql […]

无法远程访问Tomcat应用程序,但可以访问Apache应用程序

我在干净的Ubuntu 12.04服务器上安装了Atlassian的Confluence 4.2。 Confluence在Tomcat 6上运行,并使用PostgreSQL 9.1作为其数据存储。 我已经安装并configuration了phpPgAdmin来pipe理PostgreSQL,Zentyal来pipe理服务器。 这两个应用程序都使用Apache。 我遇到的问题是,虽然我可以从远程PC访问phpPgAdmin和Zentyal,但只能在本地运行(由本地主机,IP地址或主机名指定)时才能访问Confluence。 相反,我得到一个HTTP 502 Connection Failed错误。 通过实验,我还安装了Ajenti,它似乎使用lighttpd而不是Apache或Tomcat,并且在连接到本地时也可以正常工作,但在远程连接时会出现相同的HTTP 502错误。 所以从Apache服务的应用程序工作正常,但从其他服务提供的应用程序不 – 这是否与任何人都响个不停? 从我上次系统pipe理Linux的盒子已经超过了10年了,所以我已经有点生疏了!

如何更正Ubuntu 12.04中由Grub2加载的内核版本

我有一个运行Ubuntu 12.04的Linux vps,当我运行uname-r它会回复: paul@webforms:~$ uname -r 2.6.32.33-kvm-i386-20111128-dirty paul@webforms:~$ sudo grub-install -v grub-install (GRUB) 1.99-21ubuntu3.1 如果我运行update-grub,我会得到: paul@webforms:~$ sudo update-grub Generating grub.cfg … Found linux image: /boot/vmlinuz-3.2.0-26-generic-pae Found initrd image: /boot/initrd.img-3.2.0-26-generic-pae Found linux image: /boot/vmlinuz-2.6.38-15-generic-pae Found initrd image: /boot/initrd.img-2.6.38-15-generic-pae done 然后重新启动给我同样脏的内核 我正在转圈,作为一个相对noob,我相信我一定会错过一些明显的东西到蜂巢心!