AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-128164

mahen3d's questions

Martin Hope
mahen3d
Asked: 2021-09-03 18:43:22 +0800 CST

SELinux 问题 - git status 致命:内存不足?mmap 失败:权限被拒绝

  • 0

我有运行 Apache 和 Git 的 Centos 7.9 服务器,但是如果我执行

[root@a]# git status
fatal: Out of memory? mmap failed: Permission denied

但是,如果通过以下命令禁用或允许 SE-Linux,它就会开始正常工作。

setenforce Permissive

关于如何在启用 SELinux 的情况下永久解决此问题的任何想法?

审核日志说

node=a type=PROCTITLE msg=audit(1630636505.296:37076): proctitle=67697400737461747573
node=a type=MMAP msg=audit(1630636505.296:37076): fd=3 flags=0x2
node=a type=SYSCALL msg=audit(1630636505.296:37076): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=3ebd0 a2=3 a3=2 items=0 ppid=8008 pid=8156 auid=1001 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=570 comm="git" exe="/usr/bin/git" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
node=a type=AVC msg=audit(1630636505.296:37076): avc:  denied  { map } for  pid=8156 comm="git" path="/www/site/.git/index" dev="sda2" ino=540400 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:httpd_t:s0 tclass=file permissive=0
centos git selinux
  • 1 个回答
  • 255 Views
Martin Hope
mahen3d
Asked: 2020-12-03 15:14:34 +0800 CST

让我们加密自动更新安静模式错误

  • 0

我已经安装了让我们使用带有 DNS 验证模式的 Nginx 配置进行加密,按照文档中的说明自动更新,我添加了以下条目:

15 3 * * * /usr/bin/certbot renew --quiet

但是,这不起作用,所以我在命令行中运行它以查看发生了什么。我收到以下错误,我知道 Nginx 正在使用端口 80/443,当我手动更新它时我必须停止它,我想知道如何在 AUTO RENEW 模式下设置它,即在此之前添加停止 Nginx cronjob 并在它之后重新启动?但是在 cronjob 上执行此操作有点太危险了,就好像 Nginx 失败会造成很多停机时间一样。

[centos]# /usr/bin/certbot renew --quiet
Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an 
unexpected error: 
Problem binding to port 80: Could not bind to IPv4 or IPv6.. Skipping.

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/example.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)

任何想法?

ssl nginx lets-encrypt
  • 1 个回答
  • 1576 Views
Martin Hope
mahen3d
Asked: 2020-11-10 17:55:01 +0800 CST

AWS 中的 Centos 8 - PHP 安装错误

  • 1

当我尝试使用 Remi 存储库安装 PHP 时,出现以下错误

         dnf module list php
        Remi's Modular repository for Enterprise Linux 8 - aarch64   
        Errors during downloading metadata for repository 'remi-modular':
          - Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)
          - Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 195.154.241.117)
        Error: Failed to download metadata for repo 'remi-modular': 
    Cannot prepare internal mirrorlist: Status code: 403 for
http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)

如果未找到访问该页面,我会收到一个名为

仅提供镜像列表。使用https://rpms.remirepo.net/获取内容。

以下是我如何安装 Remi

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum update
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
centos epel
  • 1 个回答
  • 1193 Views
Martin Hope
mahen3d
Asked: 2015-09-02 20:48:46 +0800 CST

在云和集群服务器中部署时如何保留会话变量?

  • -1

当您的应用程序部署到集群时,如何确保您的用户保留相同的会话信息?

cluster
  • 1 个回答
  • 15 Views
Martin Hope
mahen3d
Asked: 2015-06-11 20:41:13 +0800 CST

服务器:cloudflare-nginx 是什么意思?

  • 3

我想看看,特定网站的网络服务器名称是什么。

http://browserspy.dk/webserver.php

当我搜索时,我得到了回应

Server: cloudflare-nginx

我知道 nginx 和 cloud-flare,但我从未听说过名为cloudflare-nginx.

如果网站由“nginx”驱动,通常我会得到“nginx”作为网络服务器

有人可以解释这个服务器:cloudflare-nginx 的意思吗?

nginx
  • 1 个回答
  • 12494 Views
Martin Hope
mahen3d
Asked: 2014-03-12 20:50:20 +0800 CST

Nginx - nginx.conf的位置块中〜(波浪号)的含义?

  • 72

nginx配置中location块后面的波浪号是什么意思?

例如

location ~ ^/download/(.*)$ {
  alias /home/website/files/$1;
}

有 和 没有 和有什么不一样 "~"?

nginx
  • 1 个回答
  • 55515 Views
Martin Hope
mahen3d
Asked: 2014-03-09 17:43:55 +0800 CST

yum remi 和 yum atomic 存储库之间的主要区别是什么?

  • 3

yum remi 和 yum atomic 存储库之间的主要区别是什么?

我有问题,因为我已经安装了它们,现在它们在

Yum update

我认为他们都提供相同的套餐,不是吗?什么是最适合在网络服务器中使用的包?以及如何摆脱这些存储库之一?

我想我也有 epel 存储库(我认为这是 yum 的基础存储库)不是吗?

请帮助我是 linux centos 6.4 的新蜜蜂

linux
  • 1 个回答
  • 5015 Views
Martin Hope
mahen3d
Asked: 2014-02-14 18:59:41 +0800 CST

.htaccess 覆盖拒绝 ip 列表并在任何情况下都允许一个 ip?

  • 0

在 .htaccess 中,我有以下条目来阻止某些特定国家/地区的 IP,但是列表太长了,不可能针对某个 IP 地址一一匹配其中的 IP 地址模式,

但我想添加一个允许的特定 IP 地址,即使该地址匹配“拒绝模式”

我该怎么做呢 ?我试过了

<Limit GET HEAD POST>
order allow,deny
deny from 123.2.220.
deny from 203.171.196.
....
# this list is long 
....
....
allow from 222.165.128.0/18
</Limit>

但是如果最后一个 ip 与顶部匹配,它仍然会被阻止吗?如何克服这个问题?

apache-2.2
  • 1 个回答
  • 202 Views
Martin Hope
mahen3d
Asked: 2014-01-31 22:44:54 +0800 CST

如何更新 remi 存储库列表?

  • 0

我正在尝试使用 remi 存储库升级到 php 5.5,我的操作系统是 Centos 6.4,但我的问题是

当我运行命令时

 yum --enablerepo=remi,remi-php55 install php

我仍然只看到 php 版本 5.4,如何更新我的 remi-repository 以使用最新版本?

当我运行 remi 版本时

[root]# rpm -q remi-release
remi-release-6.4-1.el6.remi.noarch

我尝试了很多命令,例如

yum update

但我没有运气。

centos
  • 1 个回答
  • 757 Views
Martin Hope
mahen3d
Asked: 2013-09-30 23:02:15 +0800 CST

我如何检测 Centos 中安装了哪个版本的 32 位或 64 位 Java?

  • 6

我正在尝试检测我的系统中运行的是哪个版本的 java(我的意思是我想知道我的 java 安装是 32 位还是 64 位)

我努力了

$java -version 

输出如下

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11.90)
(rhel-1.62.1.11.11.90.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
  1. 这是java 64位安装吗?
  2. 这是否意味着 java VM 正在运行 64 位或者它可以在两种模式下运行?
  3. 如果我还必须安装 java 64 版本,并将 JAVA_HOME var 设置到该路径,该怎么做?
  4. 很久以前(10 年前)我确实学习了 java,但是那些日子我们没有像上面那样叫做 java server 的东西,这和那些日子的普通 JVM 有什么不同吗?
  5. 在 Centos 我们可以将 java 作为服务运行吗?

任何可以帮助我的人,真的很感激。

centos
  • 1 个回答
  • 15327 Views
Martin Hope
mahen3d
Asked: 2013-03-08 18:04:59 +0800 CST

如何找出服务器宕机的时间?还是停机时间?

  • 0

我有专用服务器运行 centos 6.0,apache 和 mysql

突然由于某种原因服务器出现故障,所以我不得不重新启动服务器,一切都恢复正常,

但是我想知道我如何获得以下信息,我尝试使用“正常运行时间”命令这只给我服务器运行的时间我需要找出的是

1. Actual time the server went down ?
2. How long the server has been down ?

...ETC

有任何想法吗?

linux
  • 3 个回答
  • 18918 Views
Martin Hope
mahen3d
Asked: 2013-02-20 16:34:09 +0800 CST

重定向电子邮件绕过 Mx 优先级数 - 安装 SSL

  • 0

我在我的服务器上托管了客户网站,但他们使用的是不同的邮件服务器,而不是我们托管的,所以我们基本上有

1.MX entry to their mail server IP with priority 10
2.DNS A record to mail.xxx.com their mail server 
3.DNS MX record with mail.xxx.com  with priority as 0

当我尝试安装它只发送到的 SSL 证书时,我的问题就来了

[email protected]

我想做的是仅使用 DNS 设置或 MX 优先级编号绕过他们的邮件服务器以获得此电子邮件地址。

这是可能的还是永远不会?

domain-name-system
  • 1 个回答
  • 94 Views
Martin Hope
mahen3d
Asked: 2012-12-21 19:39:43 +0800 CST

可能是 DNS 黑客攻击或未知原因导致某些用户重定向到色情网站?

  • 1

我有一个网站,这是一个非常受欢迎的网站,但从过去两周开始,有几个客户向我抱怨说我的网站被黑客攻击并重定向到色情网站,

但每当我查看该网站时,我都看不到类似的内容,用户说他们有时会重定向到一个色情网站,然后就在一瞬间,它就消失了,正确的网站出现了。

这对我来说很烦人,就我而言我的 DNS 设置很好,(我也通过我的服务器托管确认了这一点)

这种事情发生的可能性/原因是什么?

这是我们的服务器安全问题吗?

或者这是有人黑进了一个 ISP 并更改了我站点的 DNS 记录,而我的一些使用该 ISP 的客户遇到了这个问题?(我自己从来没有遇到过这个问题)

我可以做一组 DNS 检查来验证它是否有效?

或者这会是 DNS 问题还是其他问题……我一无所知

linux
  • 3 个回答
  • 620 Views
Martin Hope
mahen3d
Asked: 2012-10-15 20:23:50 +0800 CST

如何判断centos6是否安装了OpenSSL和mod_ssl?

  • -1

我需要通过 SFTP 连接到 CentOS 6 服务器。建立或接受 SFTP 连接的要求是什么?

我想我需要安装 OpenSSL,以及在两台服务器上安装 SSL 证书,但想知道还需要什么。

linux
  • 1 个回答
  • 1827 Views
Martin Hope
mahen3d
Asked: 2012-08-29 23:11:32 +0800 CST

Memcached 调试/服务器日志监控 Memcached 服务器?

  • 1

我有基于 Memcached 变量的聊天引擎,将它们放入数组并通过 jquery 在另一端读取它们,

这在 95% 的情况下工作正常,但是当服务器负载高 memcached(假设它是 memcached)时,崩溃和浏览器会卡住。

我不认为它的 jquery 问题,因为这只发生在服务器负载非常高的时候。

我需要一种方法来监视 memcached 服务器或以某种方式将日志文件写入失败/错误出现的位置......

关于我该怎么做的任何想法?或者知道为什么 memcached 服务器会失败?我按如下方式运行 memcached

$GLOBALS['MemCached'] = FALSE;
$GLOBALS['MemCached'] = new Memcache;
$GLOBALS['MemCached']->pconnect('localhost', 11211);

我的 memcached 配置如下

#! /bin/sh
#
# chkconfig: - 55 45
# description:  The memcached daemon is a network memory cache service.
# processname: memcached
# config: /etc/sysconfig/memcached
# pidfile: /var/run/memcached/memcached.pid

# Standard LSB functions
#. /lib/lsb/init-functions

# Source function library.
. /etc/init.d/functions

PORT=11211
USER=memcached
MAXCONN=1024
CACHESIZE=128
OPTIONS=""

if [ -f /etc/sysconfig/memcached ];then 
    . /etc/sysconfig/memcached
fi

# Check that networking is up.
. /etc/sysconfig/network

if [ "$NETWORKING" = "no" ]
then
    exit 0
fi

RETVAL=0
prog="memcached"
pidfile=${PIDFILE-/var/run/memcached/memcached.pid}
lockfile=${LOCKFILE-/var/lock/subsys/memcached}

start () {
    echo -n $"Starting $prog: "
    # Ensure that /var/run/memcached has proper permissions
    if [ "`stat -c %U /var/run/memcached`" != "$USER" ]; then
        chown $USER /var/run/memcached
    fi

    daemon --pidfile ${pidfile} memcached -d -p $PORT -u $USER  -m $CACHESIZE -c $MAXCONN -P ${pidfile} $OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch ${lockfile}
}
stop () {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile} /usr/bin/memcached
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ] ; then
        rm -f ${lockfile} ${pidfile}
    fi
}

restart () {
        stop
        start
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p ${pidfile} memcached
    RETVAL=$?
    ;;
  restart|reload|force-reload)
    restart
    ;;
  condrestart|try-restart)
    [ -f ${lockfile} ] && restart || :
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
    RETVAL=2
        ;;
esac

exit $RETVAL
linux
  • 3 个回答
  • 47286 Views
Martin Hope
mahen3d
Asked: 2012-08-28 04:11:24 +0800 CST

我只想知道为什么启用 SuPHP 后 eAccelerator 无法工作?

  • 3

我只是想知道为什么人们说如果启用了 SuPHP eAccelerator 将无法工作,因为在我的服务器中我正在运行 e-accelerator 现在我已经启用了 suphp 并且至少到目前为止它似乎工作正常......

问题是

  1. 两者都运行是个好主意吗?
  2. 如果我要禁用电子加速器,我该怎么做?
  3. 使用 suphp 时,除了电子加速器之外,还有其他加速方法吗?
  4. 使用 php 使网络服务器快速运行的技巧是什么?
  5. 对 XCache 操作码的性能和推荐有任何想法吗?
linux
  • 1 个回答
  • 816 Views
Martin Hope
mahen3d
Asked: 2012-08-27 01:23:52 +0800 CST

检查端口 80 上的活动连接数?

  • 41

我有一个网络服务器,我需要在给定时间检查服务器中的连接数,

我用了以下

netstat -anp |grep 80 |wc -l

这返回了

2542

但从我的谷歌分析中我知道并发用户不超过 100。

is this correct ? 
if not how to i get the active number of connections ? 
is this sign of a victim of DOS attack how do i know that ?
linux
  • 5 个回答
  • 146195 Views
Martin Hope
mahen3d
Asked: 2012-08-25 04:55:23 +0800 CST

为什么在剩余大量可用内存时使用 Swap?

  • 38

我有很好的网络(专用)服务器,具有良好的内存资源:

System information
Server load     2.19 (8 CPUs)   
Memory Used     29.53% (4,804,144 of 16,267,652)    
Swap Used   10.52% (220,612 of 2,097,136)   

如您所见,当有大量空闲内存可用时,我的服务器正在使用交换。

这是正常现象还是配置或编码有问题?

注意
我的 MySQL 进程由于某种原因使用了超过 160% 的 CPU 能力;我不知道为什么,但我没有超过 70 个并发用户......

linux
  • 4 个回答
  • 19585 Views
Martin Hope
mahen3d
Asked: 2012-08-18 19:21:56 +0800 CST

PHP 5 处理程序 - suphp 和 dso 问题

  • 0

我有问题,我不知道该怎么做才能让它工作,

我有自己的 VPS 服务器,我可以控制 PHP 处理程序,但是我的问题是如果我打开

**PHP DSO handler**  some websites starts working but some stop working

或者,如果我选择

**PHP 5 Handler suphp** some websites starts working but some stop working

我不知道该怎么办

1. convert them to working in SuPHP (as i heard this is the safest) ?
2. run both in domain wise (may be adding it to the .htacess) ?
3. any other alternatives for this type of problem ?
linux
  • 1 个回答
  • 306 Views
Martin Hope
mahen3d
Asked: 2012-08-01 17:49:45 +0800 CST

DNS - NSLOOKUP 非权威答案是什么意思?

  • 166

对于某些域nslookup,给我一个Non-authoritative answer部分。这是什么意思?

Got answer:
    HEADER:
        opcode = QUERY, id = 3, rcode = NXDOMAIN
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional =

    QUESTIONS:
        www.example.com.SME, type = AAAA, class = IN
    AUTHORITY RECORDS:
    ->  (root)
        ttl = 1787 (29 mins 47 secs)
        primary name server = a.root-servers.net
        responsible mail addr = nstld.verisign-grs.com

------------
Non-authoritative answer:
------------

------------
Name:    example.com
Address:  93.184.216.34
Aliases:  www.example.com
domain-name-system
  • 5 个回答
  • 391011 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve