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

Pavel's questions

Martin Hope
Pavel
Asked: 2019-01-03 02:35:44 +0800 CST

LVM 卷设置错误 - 我无法扩展分区

  • 0

我对 LVM 分区的配置几乎没有错误。它是esxi中的虚拟机。

  • 我需要在 vg_vmm02 中扩展 LogVol01。
  • /dev/sdc 在管理程序中扩展为 10GB(从 5GB)。
  • 问题是我之前忘记通过 fdisk 创建 sdb1 或 sdc1,所以直接在 /dev/sdc 上创建了 LVM 分区
  • 在 fdisk /dev/sdc 现在我不能添加新分区,因为 fdisk 想要从 sdc 开始的主要重写部分
  • 在 vgdisplay 我看不到任何可用空间
  • 通过带有 gui 的 Partition Magic live cd 我也无法扩展 lvm。

修复它并使用 sdc 的 5GB 可用空间的最佳方法是什么?谢谢

lsblk
NAME                         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sr0                           11:0    1  624M  0 rom
sda                            8:0    0   40G  0 disk
├─sda1                         8:1    0  200M  0 part /boot
├─sda2                         8:2    0 37.9G  0 part
│ ├─vg_vmm02-LogVol00 (dm-0) 253:0    0 11.8G  0 lvm  /
│ └─vg_vmm02-LogVol01 (dm-1) 253:1    0 41.1G  0 lvm  /www
└─sda3                         8:3    0    2G  0 part [SWAP]
sdb                            8:16   0   10G  0 disk
├─vg_vmm02-LogVol00 (dm-0)   253:0    0 11.8G  0 lvm  /
└─vg_vmm02-LogVol01 (dm-1)   253:1    0 41.1G  0 lvm  /www
sdc                            8:32   0   10G  0 disk
└─vg_vmm02-LogVol01 (dm-1)   253:1    0 41.1G  0 lvm  /www


vgdisplay
  --- Volume group ---
  VG Name               vg_vmm02
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               52.84 GiB
  PE Size               4.00 MiB
  Total PE              13527
  Alloc PE / Size       13527 / 52.84 GiB
  Free  PE / Size       0 / 0
  VG UUID               LmLmD1-ucp9-Pj3G-Po7W-s9bq-GMQ6-7jFErM
centos
  • 1 个回答
  • 216 Views
Martin Hope
Pavel
Asked: 2018-03-28 06:27:56 +0800 CST

“ip route add X dev X”的windows服务器等价物是什么

  • 0

我在本地网络中有两个子网 - 我需要通过本地端口从一秒到一秒访问,而不使用网关。

在linux中我使用这个:

ip route add 90.5.5.0/24 dev eth0(服务器有 IP 例如 91.6.6.5)。数据直接发送到 MAC - “所以只留在路由器中”。

请问如何在windows中设置这个?

谢谢帕维尔

编辑:这与在 Windows cmd 中指定到接口的路由不重复- 我的问题是来自一个本地物理网络中的一个接口的两个 /24 子网 - 我不需要使用网关来到达第二个子网 - 但是如何?

windows
  • 2 个回答
  • 1101 Views
Martin Hope
Pavel
Asked: 2017-01-26 01:30:58 +0800 CST

Centos 7 - Apache 2.4 - 访问被拒绝

  • 1

拜托,你能帮我解决这个问题吗?

    [Wed Jan 25 09:33:43.327737 2017] [authz_core:debug] [pid 4782] mod_authz_core.c(809): [client XXXX:64248] AH01626: authorization result of Require all denied: denied 
[Wed Jan 25 09:33:43.327792 2017] [authz_core:debug] [pid 4782] mod_authz_core.c(809): [client XXX:64248] AH01626: authorization result of <RequireAny>: denied 
[Wed Jan 25 09:33:43.327801 2017] [authz_core:error] [pid 4782] [client             XXX:64248] AH01630: client denied by server configuration: /tmp/.well-known 
[Wed Jan 25 09:33:43.328370 2017] [authz_core:debug] [pid 4782] mod_authz_core.c(809): [client XXXX:64248] AH01626: authorization result of Require all granted: granted 
[Wed Jan 25 09:33:43.328385 2017] [authz_core:debug] [pid 4782] mod_authz_core.c(809): [client XXX:64248] AH01626: authorization result of <RequireAny>: granted [
Wed Jan 25 09:33:43.847668 2017] [authz_core:debug] [pid 4783] mod_authz_core.c(809): [client XXX:64252] AH01626: authorization result of Require all denied: denied 
[Wed Jan 25 09:33:43.847747 2017] [authz_core:debug] [pid 4783] mod_authz_core.c(809): [client XXXX:64252] AH01626: authorization result of <RequireAny>: denied 
[Wed Jan 25 09:33:43.847756 2017] [authz_core:error] [pid 4783] [client            XXXX:64252] AH01630: client denied by server configuration: /tmp/.well-known 
[Wed Jan 25 09:33:43.848295 2017] [authz_core:debug] [pid 4783] mod_authz_core.c(809): [client XXX:64252] AH01626: authorization result of Require all granted: granted
 [Wed Jan 25 09:33:43.848308 2017] [authz_core:debug] [pid 4783] mod_authz_core.c(809): [client XXXX:64252] AH01626: authorization result of <RequireAny>: granted

来自conf:

Alias "/.well-known/acme-challenge" "/tmp/.well-known/acme-challenge"

<Directory "/tmp/.well-known/acme-challenge/">
        Options None
        AllowOverride All
        <RequireAny>
                Require all granted
        </RequireAny>
</Directory>

作为请求@Orphans

httpd.conf
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin info@local.cz

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "/var/www/html"

#
# Relax access to content within /var/www.
#
<Directory "/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

Alias /error-httpd/ "/www/mainhost/errors/"
<Directory "/www/mainhost/error">
 Options None
 AllowOverride All
 Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride  AuthConfig FileInfo Limit Indexes

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php index.htm index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
    Require all denied
</Files>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel debug

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

</IfModule>

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
#AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    MIMEMagicFile conf/magic
</IfModule>

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults if commented: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
EnableSendfile on

# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.

# there is conf with alias for acme chall. as on top
IncludeOptional conf.d/*.conf
Include conf/vhost.conf

当我为 /tmp 和 /tmp/.well-known 添加到 conf “要求所有授予”时 - 一切正常,但我认为这个解决方案不正确:)。

centos apache-2.4
  • 3 个回答
  • 4881 Views
Martin Hope
Pavel
Asked: 2016-05-19 12:04:01 +0800 CST

没有 innodb_recovery 4 PerconaDB 无法运行

  • 0

我的 Percona 5.7.11-4 无故崩溃。现在我只能使用 innodb force recovery = 4 运行。这是来自日志的回溯。你能帮我吗?谢谢你。

> Thread pointer: 0x0 Attempting backtrace. You can use the following
> information to find out where mysqld died. If you see no messages
> after this, something went terribly wrong... stack_bottom = 0
> thread_stack 0x40000
> /usr/sbin/mysqld(my_print_stacktrace+0x2c)[0xec0a9c]
> /usr/sbin/mysqld(handle_fatal_signal+0x461)[0x79b8c1]
> /lib64/libpthread.so.0[0x3b47c0f7e0]
> /lib64/libc.so.6(gsignal+0x35)[0x3b47832625]
> /lib64/libc.so.6(abort+0x175)[0x3b47833e05] /usr/sbin/mysqld[0x76a54c]
> /usr/sbin/mysqld(_Z32page_cur_search_with_match_bytesPK11buf_block_tPK12dict_index_tPK8dtuple_t15page_cur_mode_tPmS9_S9_S9_P10page_cur_t+0x969)[0xf7ff69]
> /usr/sbin/mysqld(_Z27btr_cur_search_to_nth_levelP12dict_index_tmPK8dtuple_t15page_cur_mode_tmP9btr_cur_tmPKcmP5mtr_t+0x97d)[0x10a6cfd]
> /usr/sbin/mysqld(_Z30btr_pcur_open_on_user_rec_funcP12dict_index_tPK8dtuple_t15page_cur_mode_tmP10btr_pcur_tPKcmP5mtr_t+0x96)[0x10b00c6]
> /usr/sbin/mysqld[0x111bbda]
> /usr/sbin/mysqld(_Z39dict_check_tablespaces_and_store_max_idb+0xa29)[0x111d499]
> /usr/sbin/mysqld(_Z34innobase_start_or_create_for_mysqlv+0x45f3)[0x1034253]
> /usr/sbin/mysqld[0xef89b8]
> /usr/sbin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x51)[0x7fa171]
> /usr/sbin/mysqld[0xcc5566]
> /usr/sbin/mysqld(_Z11plugin_initPiPPci+0x600)[0xccc430]
> /usr/sbin/mysqld[0x79439d]
> /usr/sbin/mysqld(_Z11mysqld_mainiPPc+0x62a)[0x7957da]
> /lib64/libc.so.6(__libc_start_main+0xfd)[0x3b4781ed5d]
> /usr/sbin/mysqld[0x78b575] You may download the Percona Server
> operations manual by visiting
> http://www.percona.com/software/percona-server/. You may find
> information in the manual which will help you identify the cause of
> the crash. 2016-05-18T19:53:28.676862Z mysqld_safe mysqld from pid
> file /var/run/mysqld/mysqld.pid ended
percona
  • 1 个回答
  • 80 Views
Martin Hope
Pavel
Asked: 2014-08-17 04:53:22 +0800 CST

从 EPEL repo 更新 power dns

  • 0

我在 Centos 6 上使用 EPEL 存储库。如果我开始使用 mysql 后端更新 power dns - 所以请 - 我必须手动更新 mysql 架构,否则 YUM 会自己做吗?

谢谢你

centos
  • 1 个回答
  • 185 Views
Martin Hope
Pavel
Asked: 2014-05-21 03:16:26 +0800 CST

/bin/sh: /bin/cp: 参数列表太长

  • 1

我对这个命令有问题:

 'cp' -fr /www/*-aws/* /www/mainhost/aws/awstatstotals/tmp/

错误是参数列表太长- 我知道很多 /www/ -aws/文件夹。我知道我可以使用 FIND 命令,但我不知道如何将两个通配符作为文件夹参数。你能帮我吗?

谢谢帕维尔

find
  • 1 个回答
  • 3827 Views
Martin Hope
Pavel
Asked: 2014-01-24 05:34:09 +0800 CST

阿帕奇 2 + centos 6 + php 5.3.3。- 分段错误 (11) - tsrm_realpath_r

  • 0

我们服务器上的许多 JOOMLA 网站都存在问题。

错误只是 Segm。故障 11. 在浏览器中是“无数据”。调试跟踪后我有这个。

¨Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f6985296721 in tsrm_realpath_r (path=0x7ffff2bab270 "/www/domain.cz/domain.cz/language/cs-CZ/cs-CZ.xml", start=1, len=53, ll=0x7ffff2bab26c, t=0x7ffff2bab260,
    use_realpath=1, is_dir=1, link_is_dir=0x0) at /usr/src/debug/php-5.3.3/TSRM/tsrm_virtual_cwd.c:609
609     {

更新 1

(gdb)  print (char *)executor_globals.active_op_array->function_name
$2 = 0x7f699711e3d0 "getMetadata"
(gdb) print (char *)executor_globals.active_op_array->filename
$3 = 0x7f6997088da8 "/www/domain.cz/domain.cz/libraries/joomla/language/language.php"

你能帮我吗,哪里有问题?

谢谢帕维尔

apache-2.2
  • 1 个回答
  • 534 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