我使用Ansible AWX发出重新启动命令,在主机上重新启动apache2服务。restart命令包含在一个剧本中。
---
- name: Manage Linux Services
hosts: all
tasks:
- name: Restart a linux service
command: systemctl restart '{{ service_name }}'
register: result
ignore_errors: yes
- name: Show result of task
debug:
我已经在我的Ubuntu系统上安装了GitHub self-hosted runner。当我试图将它配置为服务时,会出现以下错误。
$ sudo ./svc.sh start
Failed to start actions.runner._services.Linux-Host01.service: Unit actions.runner._services.Linux-Host01.service is not loaded properly: Exec format error.
See system logs and 'systemctl status actions.runne
我正在尝试检查本地主机上的mysql和tomcat。基本上,我需要检查端口以查看应用程序是否正在侦听。我已经安装了nrpe和nagios插件我正在尝试使用nrpe检查本地主机上的mysql,但是nagios显示这个错误: NRPE: command check_mysql not defined
有什么想法吗?
# Define a host for the local machine
define host{
use linux-server ; Name of host template to use
在这里和几乎所有的互联网上,已经有了一项伟大的研究,我无法在Debian 10中配置蓝牙。
当单击“设备”时,会出现一个不活动的窗口:
https://i.stack.imgur.com/5iAAk.png
尝试设置新设备时,请接收以下消息:
https://i.stack.imgur.com/h3otj.png
我来自巴西:)
我几天来一直试图解决这个问题,但什么也没有解决。
$ sudo service bluetooth status
输出:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/syst
Apache无法使用mod_wsgi启动Django WEB应用程序,我不能找出原因。
启动apache的错误是这样的
linux-ua6r:/etc/apache2/vhosts.d # /etc/init.d/apache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -n' for details.
linux-ua6r:/etc/apa
作为root,我按照指令这里安装了RabbitMQ。然后我做了:
cd /sbin
sudo service rabbitmq-server start
...and我有..。
Redirecting to /bin/systemctl start rabbitmq-server.service
Failed to start rabbitmq-server.service: Unit rabbitmq-server.service failed to load: No such file or directory.
Linux信息:
>cat /proc/version
Linux
所以我在RHEL 7上安装了docker engine
现在当我做一个
service docker start
我得到以下错误:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
当我转到"systemctl status docker.service“和"journalctl -xe”时,
最初,我想检查服务是否在bash脚本中自动运行。然后,我发现了一个我不明白的命令,但它很好用:
/usr/sbin/service mysql status || /usr/sbin/service mysql start
或
if /usr/sbin/service mysql status > /dev/null
then
echo "mysql running"
else
echo "mysl not running"
fi
根据我目前的知识,左边应该返回一些类似false或空的内容,但是这些概念在linux中并不存在
我们有红帽Linux机器7.2版
当我们输入历史时,我们得到了历史,但是没有日期和时间。
1 ifconfig
2 cd /etc/udev/rules.d/
3 ls
4 cat 99-vmware-scsi-udev.rules
5 nano /etc/sysconfig/network-scripts/ifcfg-ethde032
6 ifconfig
7 service libvirtd statua
8 service libvirtd status
9 chkconfig -list | gr
我每周日晚上在我的Linux PC上运行一个使用cron job的脚本。当我以root用户身份登录时,我希望显示最后一次脚本执行的输出。
这是一个脚本msg.sh
#!/bin/bash
if [ -e /user/script/$start.sh ]
then
echo " starting service "
else
echo " service not started "
echo " Please check the start.sh file or manually start the service "
fi
我在Debian上安装VBox客户添加程序时遇到了问题。我的日志:
/var/log/VBoxLinuxAddtions.log
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service → /lib/systemd/system/vboxadd.service.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Look at /var/l
目前,我使用的是双引导的ubuntu16.04LTS和Windows8.1在我的hp15r204tx笔记本电脑,它运行的很好。但是在启动很长一段时间之后,grub突然出现了,当我移动箭头键选择任意选项时,grub菜单非常滞后,响应也很慢。我的etc/fstab文件如下所示
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a m