在 NFS 上挂载 /vagrant 时,如果大小没有改变,主机上已更改的文件不会在来宾上刷新。除非我对大小进行足够的修改以使其不同,否则不会立即反映快速更新/错别字。
我试图设置 lookupcache=none 但除了让一切变慢之外,没有任何改变。
我使用 OSX ML 作为主机,使用 Arch Linux 作为来宾。NFS 是 v3(因为 OSX)。
I recently resized a VPS from a 50GB SSD to a 300GB SSD through my hoster's control panel. I now am trying to resize my main partition with fdisk to be able to use all the new space. However, fdisk gives me a warning upon starting:
GPT PMBR size mismatch (104857599 != 629145599) will be corrected by w(rite).
GPT PMBR size mismatch (104857599 != 629145599) will be corrected by w(rite).
Run Code Online (Sandbox Code Playgroud)
It seems obvious that it's a sixfold of the previous …
我刚刚sysstat在 Manjaro 上安装了这个包。sar第一次运行 时,我看到:
Cannot open /var/log/sa/sa21: No such file or directory
Please check if data collecting is enabled
Run Code Online (Sandbox Code Playgroud)
如何查看是否开启了数据采集功能?
如果不是,我将如何启用它?
我正在尝试启动并运行 Google 的 Dart 语言,但在运行 dart2js 时出错。我正在运行 Arch linux 并且我从 AUR安装了dart-sdk。一些相关的终端输出如下。
% dart2js main.dart
/usr/local/bin/dart2js: line 7: /usr/local/bin/dart: No such file or directory
% cat /usr/local/bin/dart2js
#!/bin/sh
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
BIN_DIR=`dirname $0`
exec $BIN_DIR/dart --allow_string_plus=false $BIN_DIR/../lib/dart2js/lib/compiler/implementation/dart2js.dart "$@"
% file /usr/local/bin/dart
/usr/local/bin/dart: ELF …Run Code Online (Sandbox Code Playgroud) 我有一个~/.config/systemd/user/example.service像这样的用户服务:
[Unit]
Description=Example service
After=network.target
[Service]
ExecStart=/bin/bash -c 'host google.com > /var/tmp/example'
[Install]
WantedBy=default.target
Run Code Online (Sandbox Code Playgroud)
当然,我试图控制的实际服务确实做了一些有用的事情并访问网络;这只是一个简化的例子。
该服务是通过systemctl --user enable example.service它创建~/.config/systemd/user/default.target.wants/example.service指向的符号链接启用的~/.config/systemd/user/example.service。
使用此设置,并systemd按照Arch Wiki 中所述启用用户会话,服务在启动时以我的用户身份启动。但是,实际上并没有在网络建立之后启动;相反,它似乎立即开始,因为/var/tmp/example包含:
;; connection timed out; no servers could be reached
Run Code Online (Sandbox Code Playgroud)
(而且我试图控制的实际服务也无法访问网络,并因类似的名称查找错误而失败)
这意味着该服务实际上并不在network.target. 我如何让它network.target在运行前等待?
我曾经有一个带有 MySQL 的 Linux 系统 (LMDE)。系统对大多数数据库使用 innodb_file_per_table。(不确定版本,无论是 LMDE 中的“最新”版本)
我现在使用 MariaDB 的新系统(Manjaro/Arch)。
$ mysql --version
mysql Ver 15.1 Distrib 10.0.15-MariaDB, for Linux (x86_64) using readline 5.1
Run Code Online (Sandbox Code Playgroud)
旧系统有很多大型数据库,我真的不想用 mysqldump 进行复制。我更喜欢从旧系统复制 /var/lib/mysql 文件夹。
这可能吗?
我在远程服务器上有 openvpn,它是 Arch Linux。我能够连接到它,但连接后没有互联网,这意味着,当我打开浏览器并尝试加载网站时,它会在“查找...”中获取库存
两边都没有错误。服务器不在 NAT 后面,据我所知,我是 - 客户端 - 是。
服务器上没有防火墙。
路由相关的东西,转发我图?
我希望我的网站使用 MongoDB 作为数据存储。我在我的开发环境中使用了 MongoDB 没有任何后顾之忧,但我担心公共服务器的安全性。
我的服务器是运行 Arch Linux 的 VPS。Web 应用程序也将在其上运行,因此它只需要接受来自 localhost 的连接。并且没有其他用户(通过 ssh 或其他方式)可以直接访问我的服务器。
我应该怎么做才能保护我的 MongoDB 实例?
我希望 Apache 侦听特定接口上的本地链路 ipv6 地址。我的 httpd.conf 中有以下行:
Listen [fe80::a00:16ff:fe89:420f]:80
Run Code Online (Sandbox Code Playgroud)
它基于此处的 Apache 文档:https : //httpd.apache.org/docs/2.4/bind.html “IPv6 地址必须括在方括号中”
我的操作系统/Apache版本详情如下:
$ httpd -v
Server version: Apache/2.4.18 (Unix)
Server built: Dec 14 2015 08:05:54
$ uname -rv
4.3.3-3-ARCH #1 SMP PREEMPT Wed Jan 20 08:12:23 CET 2016
Run Code Online (Sandbox Code Playgroud)
使用显示的结果journalctl -e是:
(22)Invalid argument: AH00072: make_sock: could not bind to address [fe80.....
IPv6 正在工作,因为我有 sshd 和 dnsmasq 监听。我曾尝试向地址附加两个不同的范围 ID 后缀。您可以使用的接口ID3或名字net1作为既是scopeidping6和sshd。
$ ip addr | grep -Po …Run Code Online (Sandbox Code Playgroud) 我需要运行 Arch Linux 容器,但我无法在其上安装任何东西:
当我尝试跑步时 pacman -Syyu --noconfirm
error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
Run Code Online (Sandbox Code Playgroud)
按照那个线程
我跑了
pacman-db-upgrade
Run Code Online (Sandbox Code Playgroud)
但这也失败了:
==> ERROR: You must have correct permissions to upgrade the database.
Run Code Online (Sandbox Code Playgroud)
这个容器是一个archlinux:latest基于vanilla的容器docker run -it archlinux
arch-linux ×10
linux ×3
64-bit ×1
apache-2.4 ×1
cache ×1
docker ×1
fdisk ×1
gpt ×1
httpd.conf ×1
ipv6 ×1
link-local ×1
mariadb ×1
mongodb ×1
mysql ×1
nfs ×1
openvpn ×1
partition ×1
sar ×1
security ×1
service ×1
systemd ×1
vagrant ×1
virtualbox ×1
vpn ×1