最近我们将服务器从 12.04 LTS 服务器升级到 13.04。一切都很好,包括重新启动后。随着所有软件包的更新,我们开始看到一个奇怪的问题,ssh 工作了一天左右(时间不清楚)然后稍后对 SSH 的请求挂起(无法 ctrl+c,什么都没有)。
它已启动并为网络服务器流量等提供服务。
端口 22 是开放的(ips 等稍作修改以便发布):
nmap -T4 -A x.acme.com
Starting Nmap 6.40 ( http://nmap.org ) at 2013-09-12 16:01 CDT
Nmap scan report for x.acme.com (69.137.56.18)
Host is up (0.026s latency).
rDNS record for 69.137.56.18: c-69-137-56-18.hsd1.tn.provider.net
Not shown: 998 filtered ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 6.1p1 Debian 4 (protocol 2.0)
| ssh-hostkey: 1024 54:d3:e3:38:44:f4:20:a4:e7:42:49:d0:a7:f1:3e:21 (DSA)
| 2048 dc:21:77:3b:f4:4e:74:d0:87:33:14:40:04:68:33:a6 (RSA)
|_256 45:69:10:79:5a:9f:0b:f0:66:15:39:87:b9:a1:37:f7 (ECDSA)
80/tcp open http Jetty 7.6.2.v20120308
| …Run Code Online (Sandbox Code Playgroud) 我运行了以下命令
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
Run Code Online (Sandbox Code Playgroud)
我不断收到这条非常令人沮丧的消息
ERROR: Module mod-wsgi does not exist!
Run Code Online (Sandbox Code Playgroud)
请帮忙。
我正在运行 ubuntu 服务器。当我尝试登录 mysql(正在运行)时,出现以下错误
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Run Code Online (Sandbox Code Playgroud)
但是文件/var/run/mysqld夹中不存在 mysqld.sock 文件。在执行ps aux | grep mysql命令时,我意识到 mysql 服务器没有运行。
然后我尝试使用重新启动mysql服务器
service mysql start
service mysql restart
/etc/init.d/mysql start
Run Code Online (Sandbox Code Playgroud)
但是,启动过程在所有 3 种情况下都失败了。
/var/log/mysql/mysql.log和/var/log/mysql/mysql.err文件是空的。
但/var/log/error.log显示以下信息:
140425 12:49:05 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140425 12:49:05 [Note] Plugin …Run Code Online (Sandbox Code Playgroud) 我刚刚安装了 Ubuntu 14.04 和 LAMP。然后,我想配置我的服务器,所以尝试了这个教程。
当我发出命令时:
ssh root@localhost
Run Code Online (Sandbox Code Playgroud)
我得到:权限被拒绝,请重试。我已通过以下命令以 root 用户身份登录:
sudo -i
Run Code Online (Sandbox Code Playgroud)
我也尝试了同样的方法,通过以下方式登录:
sudo -s
Run Code Online (Sandbox Code Playgroud)
我使用的密码与我以前以用户身份登录时使用的密码相同,但仍然收到相同的错误消息。
有人可以帮我吗?
PS:我调查了这个问题,但似乎对我不起作用。
我刚刚在 Amazon EC2 上启动了 Ubuntu Server AMI 之一。
我连接得很好,但我没有看到任何告诉我默认登录凭据的信息。
login as: ?
Run Code Online (Sandbox Code Playgroud) 我正在使用本机 ZFS 运行 Ubuntu Server 13.04 64 位。我有包括4个硬盘,其中一个昨天去世了,现在是使用zpool不是由OS或BIOS识别了。
不幸的是,我在下次重新启动后才看到问题,所以现在驱动器标签丢失,我无法使用此处和此处的官方说明更换磁盘。
zpool status hermes -x
Run Code Online (Sandbox Code Playgroud)
印刷
root@zeus:~# zpool status hermes -x
pool: hermes
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub repaired 0 in 2h4m with 0 errors on Sun Jun 9 …Run Code Online (Sandbox Code Playgroud) 所以我刚刚安装了一个带有 Ubuntu 13.10 的虚拟机。我想在更新我的 ubuntu 12.04 服务器之前使用 apache 2.4.6。我希望我的文档根目录位于我的主文件夹中,因此我在etc/apache2/sites-available/000-default.conf
当我这样做时,我只会收到禁止的消息。我将新文件夹权限设置为 777,但仍然被禁止。我什至在新目录中放了一个 index.html 文件,它只是说 hello world 但什么也没有。这是我的 000-default.conf 文件。
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) …Run Code Online (Sandbox Code Playgroud) 在我的服务器中,每次尝试访问 MySQL 时都会出现错误:
用户 'root'@'localhost' 访问被拒绝(使用密码:NO)
当我尝试mysqladmin -u root -p password我得到
用户 'root'@'localhost' 访问被拒绝(使用密码:YES)
如何在我的 Ubuntu 服务器 12.04 中访问 MySQL?
我有 Ubuntu Server LTS 14.04,我想知道是否可以安装 vnc4server 并使其在不安装 xfce4 的情况下与 ubuntu-desktop(而不是 xubuntu-desktop)一起使用。
我想我必须配置 vnc4server 配置文件,但我是所有这些的初学者。
请不要建议我使用 xrdp 或 gnome-core。我只想使用原始的 ubuntu-desktop 安装来运行 VNC 服务器。我使用 VNC Viewer 连接到我的服务器,但我对使用与 vnc4server 不同的东西的建议没有任何问题,如果它要与 ubuntu-desktop 一起使用。
这是我第三次尝试在同一台笔记本电脑上安装 Ubuntu Server 14.04.03 64 位,每次都导致不同的问题。
每次我使用不同的应用程序和操作系统将相同的 iso 映像写入 USB 闪存驱动器时。
三种情况下iso镜像都是一样的,U盘是一样的,笔记本也是一样的。但是每次安装 Ubuntu 都会给我不同的安装选项。例如,我上次安装 Ubuntu 时,它没有显示安装时要选择的所有软件包(基本 Ubuntu 服务器等)。