我不确定为什么它没有启动或为什么它阻止我连接,我收到此错误:
sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
Active: failed (Result: start-limit) since Wed 2013-09-11 08:45:13 BST; 1min 21s ago
Process: 701 ExecStart=/usr/bin/sshd -D (code=exited, status=1/FAILURE)
Sep 11 08:45:13 alarmpi systemd[1]: sshd.service: main process exited, code=exited, status=1/FAILURE
Sep 11 08:45:13 alarmpi systemd[1]: Unit sshd.service entered failed state.
Sep 11 08:45:13 alarmpi systemd[1]: sshd.service holdoff time over, scheduling restart.
Sep 11 08:45:13 alarmpi systemd[1]: Stopping OpenSSH Daemon...
Sep 11 08:45:13 alarmpi systemd[1]: Starting OpenSSH Daemon...
Sep 11 08:45:13 alarmpi systemd[1]: …Run Code Online (Sandbox Code Playgroud) 您认为 Arch Linux 适合服务器环境吗?它的滚动发布模型和简单性似乎是一件好事,因为一旦安装了它,您就不需要像其他发行版的发布模型一样重新安装。
但是那个不断升级不会造成稳定性问题吗?虽然它是最前沿的,但 Arch Linux 使用了最新的 STABLE 版本的软件。
我正在尝试使用journalctl的模式匹配SYSLOG_IDENTIFIERS。例如,我有大量消息标记为sshd:
$ journalctl -t sshd | wc -l
987
Run Code Online (Sandbox Code Playgroud)
但是如果我尝试使用模式匹配来找到它们:
$ journalctl -t 'ssh*'
-- No Entries --
$ journalctl -t 'ssh.*'
-- No Entries --
Run Code Online (Sandbox Code Playgroud)
journalctl 手册页说模式应该有效,但我找不到关于如何在 systemd 中使用/定义模式的任何其他信息。
$ man journalctl
....
-t, --identifier=SYSLOG_IDENTIFIER|PATTERN
Show messages for the specified syslog identifier SYSLOG_IDENTIFIER,
or for any of the messages with a "SYSLOG_IDENTIFIER" matched by PATTERN.
Run Code Online (Sandbox Code Playgroud)
我正在运行 ArchLinux:
$ journalctl --version
systemd 225
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS …Run Code Online (Sandbox Code Playgroud) 我在 64 位安装上运行 Arch Linux 4.8.4-1。我通过pacman. 当我尝试开始时systemctl start mysqld,它给了我
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
Run Code Online (Sandbox Code Playgroud)
的输出systemctl status mariadb.service是
? mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-11-02 16:55:12 IST; 3min 6s ago
Process: 5123 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 5070 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery …Run Code Online (Sandbox Code Playgroud) 昨天我买了一台新电脑作为我的家庭服务器,HP Proliant 微服务器。在其上安装 Arch Linux,内核版本为 3.2.12。
安装 iptables(1.4.12.2 - 当前版本 AFAIK)并将net.ipv4.ip_forward密钥更改为 1,并在 iptables 配置文件中启用转发(并重新启动)后,系统无法使用其任何网络接口。Ping 失败
Ping: sendmsg: operation not permitted
Run Code Online (Sandbox Code Playgroud)
如果我完全删除 iptables,网络就可以了,但是我需要将 Internet 连接共享到本地网络。
eth0 - 集成在主板上的 WAN 网卡(Broadcom NetXtreme BCM5723)。
eth1 - pci-express 插槽中的 LAN NIC(英特尔 82574L 千兆网络)
由于它在没有iptables的情况下工作(服务器可以访问互联网,并且我可以从内部网络使用ssh登录),我认为它与iptables有关。我对 iptables 没有太多经验,所以我使用这些作为参考(当然彼此分开......):
wiki.archlinux.org/index.php/Simple_stateful_firewall#Setting_up_a_NAT_gateway
revsys.com/writings/quicktips/nat.html
在我以前的服务器上,我使用 revsys 指南来设置 nat,效果很好。
有没有人经历过这样的事情?我究竟做错了什么?
再会。
虽然这篇文章讨论了与我在成功安装后偶尔提供空白页的类似设置,但除了空白页之外,我无法提供任何内容。有没有存在的错误/var/log/nginx/error.log,/var/log/php-fpm.log或/var/log/nginx/us/sharonrhodes/blog/error.log。
php-fpm.conf:
[全球的] pid = 运行/php-fpm/php-fpm.pid error_log = 日志/php-fpm.log log_level = 通知 [万维网] 听 = 127.0.0.1:9000 听.所有者 = www 听.group = www 听.mode = 0660 用户 = www 组 = www pm = 动态 pm.max_children = 50 pm.start_servers = 20 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.max_requests = 500
nginx.conf:
用户 www;
worker_processes 1;
error_log /var/log/nginx/error.log 通知;
pid /var/run/nginx.pid;
事件{
worker_connections … 我正在尝试在全新干净的服务器上设置 gitlab (6.5.1)。似乎一切正常,但 git 无法推送到任何项目。按照来自新创建的项目页面的命令并通过 ssh 推送到远程给出:
$ git push -u origin master
fatal: Could not read from remote repository.
Please make sure you have the correct access
rights and the repository exists.
Run Code Online (Sandbox Code Playgroud)
这似乎是一个相当普遍的问题。不幸的是,它似乎有许多潜在的原因,但似乎没有一个是匹配的。从 旧版本的问题 3424和其他各种在线资源中,我看到并检查了以下建议:
剩余的 ssh 密钥
这是一个干净的设置,没有剩菜。我的密钥已正确添加到授权密钥文件中,并且是唯一列出的密钥。
使用调试日志运行 ssh 会显示与 Ruby 环境变量相关的错误。
我的很干净。SSH 调试显示连接成功。认证握手一切正常,那么输出到此结束:
debug1: Sending command: git-receive-pack 'username/reponame.git'
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: …Run Code Online (Sandbox Code Playgroud)我正在尝试查看是否可以在 docker 容器(在容器中运行 arch linux)中运行 systemd。
我启动 docker 的所有功能,并在 cgroups 中绑定 mount:
docker run -it --rm --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro ..
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试运行 systemd 二进制文件:
Trying to run as user instance, but the system has not been booted with systemd.
Run Code Online (Sandbox Code Playgroud)
试图找出如何正确地将东西初始化到 systemd 开始。
是否可以为 php (cli) 和 php-fpm 创建单独的 php.ini 文件,就像在 debian 和 ubuntu 上可以使用两个文件夹/etc/php/7.0/cli和/etc/php/7.0/fpm?
如果我可以conf.d为每个子系统加载带有目录的独立模块,我也会很酷。
有谁知道我如何单独配置它?
我也尝试使用在 ubuntu 16.04 中配置的结构,但没有成功。