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-67144

Dark Star1's questions

Martin Hope
Dark Star1
Asked: 2021-12-08 02:34:59 +0800 CST

是否可以在 AWS 集群中混合实例类型?

  • 0

我想知道是否可以在 AWS (EKS) 集群中混合节点实例类型。我想托管需要更多资源的东西并将其添加到集群中。

amazon-web-services amazon-eks
  • 1 个回答
  • 201 Views
Martin Hope
Dark Star1
Asked: 2017-10-21 00:33:50 +0800 CST

如何在 apache 2.4 中代理之前替换部分 URL 请求?

  • 1

我正在尝试在代理发生之前重写部分 URL ( https://myfirstdomain.com/lool/https:/alf.mydomain.com/service/wopi/files/uuid?query_params),并且我的默认 SSL vhost 中有这个相关部分:

 <IfModule mod_rewrite.c>
    RewriteEngine   On
    LogLevel debug rewrite:trace3

    RewriteRule ^lool/https:/alf.mydomain.com\/(.*) lool/https://alf.mydomain.com/$1 [QSA,NE]
</IfModule>

ProxyPass               /       https://localhost:2323/
ProxyPassReverse        /       https://localhost:2323/

我在重写日志中看到了这一点:

applying pattern '^lool/https:/alf.mydomain.com' to uri '/lool/https:/alf.mydomain.com/service/wopi/files/uuid

但是在接收到这个的服务上,我看到 URL 没有被重写。对于我做错了什么的任何线索,我将不胜感激。我实际上是在尝试/在我无法访问的基础架构中的某处添加已被代理服务器删除的额外内容。

编辑: 在后端 WOPI 服务的日志中,它看到请求 URL 未修改:

Request from 127.0.0.1:42035: GET /lool/https:/alf.mydomain.com/service/wopi/files/uuid
apache-2.4
  • 1 个回答
  • 1137 Views
Martin Hope
Dark Star1
Asked: 2017-06-30 23:36:58 +0800 CST

为什么我无法找到具有 root 正在编辑的文件的 nano 进程的 pid?

  • 1

我正在尝试使用 nano 编辑文件,每当我打开文件进行编辑时,它都会给我以下消息:

File /path/to/file is being edited (by root with nano 2.5.3. PID 12345); continue?

但是,当我 grep pid 或列出所有进程时,我无法在正在运行的进程列表中找到进程 ID。我不确定如何解决这个问题。我在 ubuntu 16.04 虚拟机上。

process
  • 3 个回答
  • 6154 Views
Martin Hope
Dark Star1
Asked: 2016-10-21 04:51:18 +0800 CST

将 ssl 应用于代理而不是被代理的服务是否足够?

  • 0

我想知道在代理上启用 SSL 是否足够,但在被代理的服务上却不行。当通讯应该是 https 时,会不会有来自外部(在客户端)的问题?

security proxy ssl ssl-certificate
  • 1 个回答
  • 27 Views
Martin Hope
Dark Star1
Asked: 2016-02-27 01:18:14 +0800 CST

是否可以检查当前正在运行的 clamAV 扫描的进度?

  • 6

我已经四处搜索,但到目前为止还没有找到可能的解决方案。我有一个正在进行的扫描,我认为它会在某个时间完成,但不幸的是它没有。所以我想知道是否有办法检查这个正在进行的进度的扫描进度。

anti-virus
  • 2 个回答
  • 8061 Views
Martin Hope
Dark Star1
Asked: 2014-12-11 14:45:49 +0800 CST

使用 nginx 重写规则获取“重定向过多”错误

  • 7

我正在尝试重写以我的站点为目标的域 url,以便将所有域名都重写为 www.example.com 并具有以下配置:

我的网站块

  server {      
        listen       80 default_server;
        listen   [::]:80 default_server ipv6only=on;

            server_name _;
            rewrite ^ $scheme://www.example.com$request_uri permanent;

    location / {

            # Allow for large file uploads
              client_max_body_size 0;

                proxy_http_version 1.1;
                proxy_pass http://mysite;
                proxy_buffering    off;

                proxy_set_header   X-Real-IP $remote_addr;
                proxy_set_header   X-Scheme $scheme;
                proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header   Host $http_host;
    }
}

tomcat 服务器块

server {
        listen        80;

        root /opt/site2/www;
        index index.html index.htm;

        # Redirecto root requests to Share
        rewrite ^/$ /share;

        location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ /index.html;
        }

        # redirect server error pages to the static page /50x.html
        error_page 502 503 504 /maintenance.html;
            location = /maintenance.html {
            root   /opt/site2/www;
        }

        location /share {

            # Allow for large file uploads
            client_max_body_size 0;

            # Proxy all the requests to Tomcat
            proxy_http_version 1.1;
            #proxy_buffering off;
            proxy_pass http://backend;
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Host $http_host;
            proxy_set_header X-Forwarded-Server $host;
        }

}

在服务器块中,但我收到“重定向过多”错误。

nginx
  • 1 个回答
  • 50340 Views
Martin Hope
Dark Star1
Asked: 2014-07-10 04:18:08 +0800 CST

是否可以在不同的服务器上部署 SSL 包罗万象的证书?

  • 1

我有一个“包罗万象的证书”,我想在驻留在另一个 VM 中的另一台服务器上使用它。我怎样才能做到这一点?我还没有看到任何其他解释的文档。

web-server
  • 1 个回答
  • 316 Views
Martin Hope
Dark Star1
Asked: 2014-06-13 01:13:00 +0800 CST

是什么阻止了 postfix 向本地传输代理发送邮件?

  • 0

我有以下设置(从我的 postconf -n 输出中获取)

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
maximal_backoff_time = 8000s
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
mydestination = $mydomain, localhost.$mydomain, localhost
myhostname = //redacted
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_helo_timeout = 60s
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_hard_error_limit = 12
smtpd_recipient_limit = 10
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_soft_error_limit = 3
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = virtual
virtual_uid_maps = static:5000
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_maps=mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message=Sorry, the your maildir has overdrawn your diskspace quota, please free up some of spaces of your mailbox try again.
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_create_maildirsize=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_extended=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_relay_restrictions=reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit

我不熟悉邮件服务器配置,但据我了解,从这条消息中可以看出:status=deferred(邮件传输不可用)这意味着它无法传递到 LDA。我在带有 dovecot 2.0.19 的 ubuntu 12.04 上使用 postifx 2.9.6

编辑:邮件到达日志

Jun 12 12:18:59 mailserve postfix/smtpd[1215]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: connect from redacted
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: 6788268E01E9: client=redacted
Jun 12 12:19:00 mailserve postfix/cleanup[1196]: 6788268E01E9: message-id=<[email protected]>
Jun 12 12:19:00 mailserve postfix/qmgr[678]: 6788268E01E9: from=<redacted>, size=17120, nrcpt=1 (queue active)
Jun 12 12:19:00 mailserve postfix/qmgr[678]: warning: connect to transport private/smtp-amavis: No such file or directory
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: disconnect from redacted
Jun 12 12:19:01 mailserve postfix/error[1223]: 6788268E01E9: to=<redacted>, relay=none, delay=0.75, delays=0.38/0/0/0.36, dsn=4.3.0, status=deferred (mail transport unavailable)
postfix
  • 1 个回答
  • 3314 Views
Martin Hope
Dark Star1
Asked: 2013-01-23 17:11:44 +0800 CST

是否可以转储 postgresql 数据库并在 mysql 中恢复它?

  • 0

我正在尝试将数据从 postgre 数据库迁移到 mysql (mariaDB) 并且想知道是否可以从 pgsql 转储恢复 mysql 中的数据库?

database
  • 1 个回答
  • 1949 Views
Martin Hope
Dark Star1
Asked: 2012-12-03 17:28:17 +0800 CST

Apache httpd 错误“代理:ap_get_scoreboard_lb”与 ProxyPass

  • 12

我将 apache 设置为 tomcat 的代理,但是当我定位页面时出现以下错误。我有时会得到一个空白页或 503:

[错误]

[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker proxy:reverse
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(1) failed in child 29611 for worker https://localhost:8443/
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(0) failed in child 29611 for worker http://localhost:8080/

我在虚拟机上配置了两个虚拟主机,如下所示:

[http 主机]

<VirtualHost *:80>
  ServerName www.mysite.net
  ServerAlias mysite.net

  ProxyRequests Off
  ProxyPreserveHost On

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass / http://localhost:8080/ retry=0
  ProxyPassReverse / http://localhost:8080/ retry=0
</VirtualHost>

[SSL 虚拟主机]

<VirtualHost *:443>
        ServerName www.mysite.net
        ServerAlias mysite.net

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

        SSLEngine on
        SSLProxyEngine on
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / https://localhost:8443/ retry=0
        ProxyPassReverse / https://localhost:8443/ retry=0

</VirtualHost>

我的系统详细信息是: Apache/2.2.22 (Ubuntu) mod_jk/1.2.32 mod_ssl/2.2.22 OpenSSL/1.0.1 mod proxy_http 也已启用。

apache-2.2
  • 1 个回答
  • 12587 Views
Martin Hope
Dark Star1
Asked: 2012-08-27 15:58:56 +0800 CST

无法使用运行时配置 cn=config 在 OpenLDAP 中添加模式

  • 1

我有以下 ldif 文件,我试图将其加载到 openLDAP 中:

正在为 Monas 项目创建自定义模式

dn: cn=testSchemas,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: testSchemas
olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.90 
 NAME 'competence'
 DESC 'The field an individual is qualified'
 EQUALITY caseIgnoreMatch
 SUBSTR caseIgnoreSubStringsMatch
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )

olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.91 
 NAME 'spokenLanguage'
 DESC 'The language spoken by a person.'
 SUP preferredLanguage
 EQUALITY caseIgnoreMatch
 SUBSTR caseIgnoreSubStringsMatch
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

olcObjectClasses ( 1.3.6.1.4.1.4203.666.2012.1 
 NAME 'inetOrgTestPerson'
 DESC 'An extension of the inetOrgPerson objectClass to add some additional attributes'
 SUP inetOrgPerson
 STRUCTURAL
 MUST competence
 MAY spokenLanguage )

我不断收到错误消息:ldapadd: invalid format (line 4) entry: cn=testSchemas,cn=schema,cn=config"我一辈子都弄不明白哪里出了问题。我在 ubuntu 12.04 上使用 openldap 2.4.28

编辑:修复丢失的“:”的语法错误后,我设法添加了对象和属性(或者我认为)但是当我执行搜索时我看不到它们我得到错误:

ldap_modify: Type or value exists (20)
    additional info: modify/add: olcAttributeTypes: value #0 already exists

当我尝试再次添加对象时,这意味着它们在数据库中,但搜索中没有任何结果。

ldap
  • 1 个回答
  • 3138 Views
Martin Hope
Dark Star1
Asked: 2012-05-21 10:57:32 +0800 CST

如何让 tomcat 绑定到 ipv4 地址?

  • 38

我最近通过 apache solr typo3 社区的安装脚本安装了 tomcat,并在过去 3 天里试图弄清楚为什么它不起作用,直到偶然我注意到当我通过“ lsof -i”查询监听端口的进程时,它绑定到 ipv6 协议。

我到处搜索,大多数人说0.0.0.0在 tomcat 连接器中设置地址可以解决这个问题,其他人说设置JAVA_OPTS="-Djava.net.preferIPv4Stack=true"。

我试过前者不起作用,但后者我不确定把它放在哪里。我在某处读到的一种解决方案建议将其放入,setenv.sh但我无法在我的 tomcat 安装中找到该文件。目前,我将不胜感激。

tomcat版本为6.x,操作系统为ubuntu 11.10。

谢谢

typo3 solr tomcat6
  • 7 个回答
  • 109171 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