我尝试了几乎所有的东西(我是用soyoustart),但它不会启动,我从soyoustart团队得到这个消息,他们不会帮助我,因为它是软件相关的。 (专用服务器用于游戏服务器和我的网站)我的根分区已满时,服务器仍然工作( df -h ),但现在我重新启动它,它停止工作OS的技术支持把它在救援模式,并给了我这个。 Date 2016-11-02 09:51:43, Diagnosis interface boot (rescue): Here are the details of the operation performed: The server gets stuck during the boot phase. The following message is displayed: checking file systems… fsck from util-linux 2.20.1 fsck.ext4:Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2 […]
我现在在操作系统级别上正在做的事情是: 初始化后,切换到需要variables的用户并导出variables,然后指定在configuration文件中设置它们,或者在root用户的/ etc / environment(Debian)中设置它们来考虑持久性 我通过“echo >>”或“sed”直接或通过主configuration查找设置的目录来执行很多操作。 为了我: export MYVAR=foobar echo "export MYVAR=foobar" >> /home/bradchesney79/.profile 最上面的一个可以在执行时使环境variables可用,但是当你注销时它将不见了。 把这个命令放在你的.profile文件中,你将在login时为你创build它。 sed -is/export MYVAR=.*/export MYVAR=barfoo/g /home/bradchesney79/.profile 为你: sudo -u brianchesney80 export HISVAR=something sudo -u brianchesney80 echo "HISVAR=something" >> /home/brianchesney80/.profile 为了所有人: ((Not fully certain how to export globally just yet)) sudo echo "OURVAR=fffoooooobbbaaarrr" >> /etc/environment 我不喜欢重新启动。 但是,我没有看到任何方法来启用这里为每个人设置的环境variables。 那么,想要查看不同用户的环境variables? sudo -u […]
我的服务器运行的是debian 7,我通过apt-get安装了php 5.4.45。 我需要PHP 5.6的一些其他服务来正常运行,但不幸的是我找不到任何方式通过apt-get来安装它。 我已经下载,编译并安装了php 5.6和php -v显示: PHP 5.6.29 (cli) 不幸的是,由于通过apt-get安装的版本仍然可以通过php5命令访问,所以apache使用旧的5.4.45。 我不能摆脱这一点,因为还有其他的东西,取决于我不想失去。 我读过其他答案,但我没有find我的设备上的任何地方的httpdconfiguration文件。 另一件事,我怎么能“告诉”apt-get或任何其他包pipe理器,我手动安装了较新版本的PHP,所以它不需要我下载旧版本,只是为了满足依赖。 这个名字是不正确的,我需要把它链接到某个地方吗? 如果有一些文章,解释它,请链接它。
我在Debian Jessie的专用服务器上运行Mariadb突然closures,当我尝试启动mysql它给了我这个错误: Dec 31 20:18:20 mysqld[6630]: 2016-12-31 20:18:20 140334745393088 [Note] /usr/sbin/mysqld (mysqld 10.1.20-MariaDB-1~jessie) starting as process 6630 … Dec 31 20:19:50 systemd[1]: mariadb.service start operation timed out. Terminating. Dec 31 20:20:32 systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE Dec 31 20:20:32 systemd[1]: Failed to start MariaDB database server. Dec 31 20:20:32 systemd[1]: Unit mariadb.service entered […]
configuration:Debian 8,cyrus-IMAP,后缀 我正在从我的长期商业邮件服务提供商迁移到我自己的解决scheme。 我使用cyrus和postfix。 到目前为止,一切正常。 现在:什么是从邮件旧提供商获取邮件的最佳方式,并将其转发到我自己的IMAP服务器。 我想在服务器上这样做,而不是在我的邮件客户端上。
我想在引导过程中隐藏GRUB,这样我就可以访问操作系统列表,只要我想引导默认值以外的东西。 我通过在/etc/default/grub中指定来隐藏GRUB GRUB_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_DEFAULT=0 现在的问题是,无论何时我按下shift键启动, Loading grub打印,但然后迅速加载操作系统,而不给我一个select操作系统的选项。 题 现在我无法使用shift键进入grub,如何进入debian来更改设置?
我无法在Debian 8上安装automake1.9。运行apt-get install automake1.9我Unable to locate package automake1.9错误。 我已经尝试更新回购清单,但也没有帮助 apt-get install automake1.9的输出 root@serv1:~# apt-get install automake1.9 Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package automake1.9 E: Couldn't find any package by regex 'automake1.9' root@serv1:~# 内容在sources.list #deb http://mirrors.linode.com/debian/ jessie main deb http://mirrors.linode.com/debian/ jessie main deb-src http://mirrors.linode.com/debian/ jessie main […]
我已经安装了Nagios来监视我的Debian服务器上的apt。 问题是,我不明白为什么它显示本地服务器上的更新的可用数量也为networking服务器。 例如,我有一个服务器有32个软件包来更新,但我收到一个2的电子邮件警报。 服务configuration: define service { hostgroup_name apt-servers service_description APT check_command check_apt use generic-service notification_interval 0 ; set > 0 if you want to be renotified } 主机configuration define hostgroup { hostgroup_name apt-servers alias APT servers members vps1, vps2, vps3 } 命令configuration从Debian软件包(未触及) # 'check_apt' command definition define command{ command_name check_apt command_line /usr/lib/nagios/plugins/check_apt } # […]
过去几天我一直在为在VPS上configurationnetworking服务器工作。 我想要这个VPS来处理我的电子邮件,所以我安装了Postfix和Dovecot。 经过大量的configuration,我终于得到了它的工作。 但是,有一些我不太明白。 我的服务器的主机名是:server这使得我的FQDN:server.mydomain.com 我想客户端连接到mail.mydomain.com和smtp.mydomain.com,但我读的每个教程说,你应该使用你的主机名。 为什么我不能使用mail.mydomain.com ? 我当然可以将VPS的主机名重命名为邮件,但它也是一个具有其他用途的通用服务器。 我正在运行Debian 8(jessie)
所以我有一个免费的.gq域名,几天后就会过期,所以我买了一个.xyz域名。 我需要在Apache(Debian)中更改哪些内容,以便所有内容都能像以前一样工作? 我已经更改了/etc/apache/sites-available的虚拟主机configuration文件,运行命令a2dissite NAME-OF-SUBDOMAIN.domain.gq和a2ensite NAME-OF-SUBDOMAIN.domain.xyz 。 子域名仍然不起作用。 每当我尝试达到mail.domain.xyz我最终在www.domain.xyz网站。 概要: 使用domain.gqconfigurationApache2 我现在使用domain.xyz 我如何告诉Apache我不再使用旧的域名,而是新的域名? 我如何让我的子域(虚拟主机)再次工作? 一个虚拟主机文件的示例(所有其他vh文件具有相同的scheme): <VirtualHost *:80> ServerName pic.domain.xyz DocumentRoot /var/www/pic/ </VirtualHost> 它现在有效。 我不完全知道为什么。 我做的唯一的事情就是apt update && apt upgrade -y 。 我不知道升级是否对它负责,我更新后只检查了2个小时。