我的公司将我们的数据托管在 Windows Server 2016 上。我正在运行 Xubuntu(版本 15.04),无法使用该命令连接到我们的共享mount。
这是我尝试失败的命令示例(我想挂载以下示例中的文件夹Folder4)Test_mnt:
sudo mount -v -t cifs //domain.adress.org/dfs/Folder1/Folder2/Folder3/Folder4 /home/alkalyzer/Test_mnt -o username=domain/myusername,domain=domain.adress.org,rw
Run Code Online (Sandbox Code Playgroud)
这样做时(在提示符下提供密码后),我收到以下错误消息:
mount error(13): Permission denied
Run Code Online (Sandbox Code Playgroud)
这是写在/var/log/syslog:
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13
Run Code Online (Sandbox Code Playgroud)
我采用了不同的方法来尝试使其发挥作用:
workgroup为workgroup = DOMAIN在/etc/samba/smb.confwins support = yes/etc/samba/smb.confclient min protocol = SMB2和添加client max protocol = SMB3 …我刚刚安装了一个新的 Ubuntu 服务器。它是托管在 Hyper-V 上的虚拟机。我正在尝试使用以下命令更改 root 密码:
sudo passwd
Run Code Online (Sandbox Code Playgroud)
然后输入新密码。
一切看起来都很好,直到我重新启动服务器。那么只有旧密码才有效。
我该如何解决这个问题?
我有一个在 Raspberry Pi 上运行的 Ubuntu 服务器(32 位)。是否可以将此操作系统转移到普通的 64 位服务器,这样我就不必从一开始就安装所有正在运行的服务?如何?
我想在某个文件夹中查找具有特定扩展名的文件,比如说在“ /backup-nfs ”中查找“ .sql ” 。稍后,我将在 crontab 上使用此命令来自动删除一些文件。
我使用了 3 种不同的方法,它们给出了不同的结果:
方法一:
ls -lah方法二:
find . /backup-nfs/ -name "*.sql" -type f -ls方法三:
find . /backup-nfs/ -name "*.sql" -type f -ls问题:
以前我可以通过命令轻松运行docker sudo apt-get install docker...。今天尝试了新的方式,通过snap命令安装,然后
Microsoft Windows [Version 10.0.19044.2486]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Administrator\Downloads>ssh -i "vy.pem" ubuntu@ec2-18-142-158-158.ap-southeast-1.compute.amazonaws.com
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1028-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Jan 30 02:00:14 UTC 2023
System load: 0.16845703125 Processes: 111
Usage of /: 21.7% of 7.57GB Users logged in: 0
Memory usage: 3% IPv4 address for docker0: 172.17.0.1
Swap usage: 0% IPv4 address for eth0: 172.31.32.168
0 updates …Run Code Online (Sandbox Code Playgroud) 如何在 Ubuntu Server 中每隔几秒运行一次 PHP 脚本?(奖励:如何在 cron 脚本中随机运行,例如每 3 秒 + 随机(3 秒))
我在 linode 上的服务器 VPS 上运行最新的 Ubuntu,安装 cronkeep 时出现此错误
哦,啪!
at 在此系统上不可用。每当您点击“运行”时,CronKeep 都会在内部使用这个巧妙的命令来独立于您的 Web 服务器运行作业。这意味着您可以重新启动您的 Web 服务器并仍然让进程在后台运行。
这是命令的原始输出,可以帮助您进一步调试:sh: 1: at: not found
有没有被调用的工具,at或者在 C 编译器上有什么可用的东西?。
在我的 Ubuntu 虚拟机上,我有一个带有/大量可用空间的磁盘/分区。
我还有一个名为/mnt/images“已满”的分区。
你可以在这里看到:
root@marzen:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1774696 0 1774696 0% /dev
tmpfs 359172 988 358184 1% /run
/dev/sda1 1040831904 7396580 1033418940 1% /
tmpfs 5120 0 5120 0% /run/lock
/dev/sdb 92703048 92686664 0 100% /mnt/images
root@marzen:/#
Run Code Online (Sandbox Code Playgroud)
所以我试图使用fdisk调整大小,但它给了我这样的消息:
root@marzen:/# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The …Run Code Online (Sandbox Code Playgroud) 我用 Ubuntu Server 15.04 启动了一个新的 Rackspace 服务器,选择了 15.04,我相信我得到了最新最好的软件。但是,经过一些调查,似乎 15.04 随附于 2014 年 1 月 6 日构建的 OpenSSL 1.0.1f。根据我阅读的所有内容,此版本容易受到 Heartbleed 错误的影响。
在不干扰默认 apt 软件包的情况下,在 15.04 上更新 OpenSSL 的最佳方法是什么?
更新:我发现这些解释很有帮助。
我将使用 Spring、JDK、Maven、jQuery、JavaScript、servlet、JSP 和 HTML 开发一个电子商务站点。
Ubuntu 适合开发这样的项目吗?如果我遇到与此主题相关的任何问题,我可以在哪里询问?
我对 Ubuntu Server、Samba 和 Apache 服务器的技术术语感到相当困惑。
它们都是独立的东西吗?每个人做什么?Ubuntu 服务器中是否包含 Samba 和 Apache 服务器?
我需要指出一种准确的最新方法来安装 Wordpress。我还需要有关为其设置 Apache 的详细信息。我找不到官方帮助或支持。除了虚拟主机文件和 /etc/hosts 编辑之外还有什么吗?它们究竟应该如何配置?我的 ip 只是将我带到了 Apache 测试页面,如何将其移到子目录之外?
server ×13
command-line ×2
cron ×2
15.04 ×1
20.04 ×1
apache2 ×1
at-command ×1
docker ×1
fdisk ×1
find ×1
java ×1
javascript ×1
jdk ×1
maven-3 ×1
migration ×1
mount ×1
networking ×1
openssl ×1
partitioning ×1
password ×1
permissions ×1
php ×1
raspberrypi ×1
root ×1
samba ×1
services ×1
snap ×1
terminology ×1
wordpress ×1