zoukankan      html  css  js  c++  java
  • linux下常见错误记录

    1.linux 安装 Redis 进到 utils 目录下执行 ./install_server.sh 时提示报错:

    This systems seems to use systemd.
    Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!

    解决方案:

      a) vi ./install_server.sh

      b) 注释如下代码

    #bail if this system is managed by systemd
    #_pid_1_exe="$(readlink -f /proc/1/exe)"
    #if [ "${_pid_1_exe##*/}" = systemd ]
    #then
    #       echo "This systems seems to use systemd."
    #       echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!"
    #       exit 1
    #fi

      c) 再次执行./install_server.sh

    2. CentOS7:ifconfig command not found解决

    解决方案:

      yum install net-tools -y

    3. printf '%x ' pid  -- 将 pid 转换为 16 进制

    4. vim command not found 解决

    解决方案:

      rpm -qa | grep vim 查看

      只有一个 minimal 或没有时,执行 yum install vim* -y

    5. wget command not found 解决:yum install wget -y

    6. pstree command not found 解决:yum install psmisc -y

  • 相关阅读:
    VERSIONINFO Resource
    WCF 学习文摘
    hook 学习
    COM 学习
    ActiveX开发
    Word 开发资料集合
    Loops with PL/SQL
    TWain 在 Qt4 中的调用方法
    从 TWAIN 设备中扫描图像
    Qt enum使用总结
  • 原文地址:https://www.cnblogs.com/zhuozhang/p/14842703.html
Copyright © 2011-2022 走看看