AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-377908

elyograg's questions

Martin Hope
elyograg
Asked: 2023-06-12 09:58:46 +0800 CST

UEFI 引导模式下的 Dell R710 服务器不显示 grub 菜单

  • 5

我有一台安装了 Ubuntu 的 Dell R170 服务器。它处于 UEFI 引导模式。系统正常启动。

我已经配置了 /etc/default/grub 选项,应该让它显示 grub 菜单并在启动默认选项之前等待 5 秒。这些设置适用于处于 BIOS 引导模式的其他系统,以及处于 BIOS 或 UEFI 引导模式的 libvirtd VM。每次我更改 /etc/default/grub 时,我都会运行sudo update-grub.

我一直无法弄清楚如何让它显示 grub 菜单并等待配置的 5 秒。我忽略了什么?我已经尝试了很多方法来尝试修复它,但到目前为止都没有成功。

这是 /etc/default/grub 的内容:

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="splash reboot=pci delayacct --backround=/boot/grub/splash.png"
GRUB_CMDLINE_LINUX="elevator=none"
ubuntu
  • 2 个回答
  • 44 Views
Martin Hope
elyograg
Asked: 2023-05-29 06:26:38 +0800 CST

我有一个现有的 artifactory oss 安装。我想要一个新的安装。但它没有添加“libs-release”和“libs-snapshot”存储库

  • 5

所有服务器都是 Ubuntu 22.04,我使用的是来自 jfrog 的 OSS artifactory apt repo。

我有一个安装了 artifactory 的虚拟机。由于各种原因,我需要用新的虚拟机替换该虚拟机。

我在新虚拟机上安装了 artifactory。我遇到了一个问题,不记得是什么了。所以我清除了 artifactory 并重新安装了它。现在它不经过初始设置(更改管理员密码等)。libs-release 和 libs-snapshot 存储库不存在。

我如何让它再次通过初始设置,在那里我更改密码并告诉它使用 Maven?

ubuntu
  • 1 个回答
  • 43 Views
Martin Hope
elyograg
Asked: 2022-12-25 23:21:53 +0800 CST

mariadb 10.2.44 CentOS 7 上的 mysqldump 不起作用,但 mysql 可以

  • 6

CentOS 7 玛丽亚数据库 10.2.44。

X [root@psa95 ~]$ rpm -qa | grep Maria
MariaDB-server-10.2.44-1.el7.centos.x86_64
MariaDB-common-10.2.44-1.el7.centos.x86_64
MariaDB-compat-10.2.44-1.el7.centos.x86_64
MariaDB-client-10.2.44-1.el7.centos.x86_64
✓ [root@psa95 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

/root/.my.cnf 中提供的凭据包含客户端、mysqldump、mysql 的部分。

X [root@psa95 ~]$ mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4875
Server version: 10.2.44-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> Bye
✓ [root@psa95 ~]$ mysqldump mysql
mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: YES)" when trying to connect

mysql 命令有效。mysqldump 命令没有。

我尝试使用 -p 提示输入密码,并在命令行上提供用户名和密码。同样的事情——适用于 mysql,不适用于 mysqldump。

另一个具有完全相同的 MariaDB 版本和 .my.cnf 中相同设置的 CentOS 7 系统完美运行。我比较了两个系统的 mysqldump 二进制文件,它们是相同的。

我搜索了谷歌并尝试了我能找到的每一个想法。没有一个奏效。我还能尝试什么?排除故障还需要哪些其他信息?我知道密码很好——它适用于 mysql 命令。

centos
  • 1 个回答
  • 51 Views
Martin Hope
elyograg
Asked: 2022-11-04 18:17:46 +0800 CST

无法让 tftp 服务器在 Ubuntu 22.04 上运行

  • 6

我让 tftpf-hpa 在我的 Ubuntu 服务器上工作,以从我的 Cisco 设备发送/接收图像和配置。

今天它不工作。即使我手动尝试,该服务也不会启动。它没有告诉我为什么它不会启动。如果我用 strace 运行 start-stop-daemon,我会得到很多输出,但我看不出问题是什么。

我尝试切换到 atftpd,但是当它尝试写入我从 cisco 交换机发送的文件时,核心转储……这是我经常做的事情,并且以前一直有效。

我还尝试使用 tftpd 包,但系统日志表明它正在尝试发送我要求交换机发送的文件,而不是接收它。交换机将“权限被拒绝”指示为问题。为了使用 tftpd 进行测试,我将 /var/lib/tftboot 及其所有内容的所有权更改为 nobody:nogroup。

我在另一台运行 Ubuntu 20.04 的服务器上安装了 tftpd-hpa,并且可以正常工作。所以我并没有死在水里,但那是一个辅助服务器。

任何人都可以帮助我在我的主要 Ubuntu 服务器上获得一个工作的 tftp 服务器吗?如果有解决这些问题的方法,请告诉我。

tftp
  • 1 个回答
  • 37 Views
Martin Hope
elyograg
Asked: 2022-10-07 14:32:28 +0800 CST

Ubuntu Apache2 未正确排序启用的站点

  • 0

我在 Ubuntu 上有一个 apache2 配置。一切都运行良好,直到我尝试将所有规范的重定向虚拟主机移动到一个文件中,而不是将它们分散在许多其他配置文件中。

我安排了我的配置文件名,以便我可以严格控制首先加载哪个站点,从而控制其中哪个是 Apache 的默认站点。这是 /etc/apache2/sites-enabled 中的前两个文件,按照 ls 默认的词法排序:

elyograg@smeagol:/etc/apache2$ sudo ls -al sites-enabled
total 12
drwxr-xr-x 2 root root 4096 Oct  6 16:13 .
drwxr-xr-x 9 root root 4096 Oct  6 16:12 ..
lrwxrwxrwx 1 root root   51 Jul 22  2017 000000-unknown.REDACTED.org.conf -> ../sites-available/000000-unknown.REDACTED.org.conf
lrwxrwxrwx 1 root root   47 Oct  6 16:13 0000-canonical-redirect.conf -> ../sites-available/0000-canonical-redirect.conf

今天我添加了 0000-canonical-redirect.conf 文件,我希望它成为 Apache 加载的第二个站点配置文件。过去它会将 000000 文件加载为默认站点,但由于我添加了新文件,Apache 选择该文件而不是像我预期的那样选择 000000 文件。

我将下载并查看源代码,但我希望也许人们之前已经遇到过这个问题并确定这是一个错误。

elyograg@smeagol:~$ dpkg -l | grep apache2
ii  apache2                                    2.4.52-1ubuntu4.1                            amd64        Apache HTTP Server
ii  apache2-bin                                2.4.52-1ubuntu4.1                            amd64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                               2.4.52-1ubuntu4.1                            all          Apache HTTP Server (common files)
ii  apache2-utils                              2.4.52-1ubuntu4.1                            amd64        Apache HTTP Server (utility programs for web servers)
ii  libapache2-mod-dnssd                       0.6-3.2                                      amd64        Zeroconf support for Apache 2 via avahi
ii  libapache2-mod-passenger                   6.0.10-3build2                               amd64        web application server - apache2 integration
ii  libapache2-mod-wsgi-py3                    4.9.0-1ubuntu0.1                             amd64        Python 3 WSGI adapter module for Apache

编辑:我尝试了我希望的更明确的命名,但它仍然首先加载重定向文件。

elyograg@smeagol:/etc/apache2$ ls -al sites-enabled/
total 12
drwxr-xr-x 2 root root 4096 Oct  6 16:41 .
drwxr-xr-x 9 root root 4096 Oct  6 16:12 ..
lrwxrwxrwx 1 root root   50 Oct  6 16:25 _0000-unknown.REDACTED.org.conf -> ../sites-available/_0000-unknown.REDACTED.org.conf
lrwxrwxrwx 1 root root   46 Oct  6 16:41 111-canonical-redirect.conf -> ../sites-available/111-canonical-redirect.conf
ubuntu
  • 2 个回答
  • 36 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve