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

ehime's questions

Martin Hope
ehime
Asked: 2018-11-09 09:25:57 +0800 CST

无法在 Ansible 中访问模板的组地址

  • 0

我正在尝试枚举我的eth0地址(设置为默认值,因为我在某处读到 eth0 并不总是可用..)。在我的模板中,我尝试像这样从组中调用它......

[Unit]
Description=Kubernetes Kube Proxy
Documentation=https://github.com/GoogleCloudPlatform/kubernetes

[Service]
ExecStart=/usr/bin/kube-proxy \
  --master=https://{{ groups[controller][0]['ansible_default_ipv4']['address'] }}:6443 \
  --kubeconfig=/var/lib/kubelet/kubeconfig \
  --proxy-mode=iptables \
  --v=2

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

这似乎应该是可用的,因为当我倾倒时-debug var=groups我得到......

[18.234.92.196] => {
    "groups": {

      ......

        "controller": [
            "54.86.253.135",
            "52.205.43.24",
            "54.210.213.10"
        ],
        "controller.0": [
            "54.86.253.135"
        ],
        "controller.1": [
            "52.205.43.24"
        ],
        "controller.2": [
            "54.210.213.10"
        ],

        ......

        "name_controller-0": [
            "54.86.253.135"
        ],
        "name_controller-1": [
            "52.205.43.24"
        ],
        "name_controller-2": [
            "54.210.213.10"
        ],

        ......

    }
}

奇怪的是,当我尝试调试时,var=groups[controller]我得到...

TASK [worker : debug] *******************************************************************************************************************************************
ok: [34.207.172.100] => {
    "groups[controller]": "VARIABLE IS NOT DEFINED!: 'controller' is undefined"
}

.....

TASK [worker : Add Kubelet configuration] ***********************************************************************************************************************
fatal: [34.207.172.100]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'controller' is undefined"}

我在这里想念什么?

ansible
  • 1 个回答
  • 384 Views
Martin Hope
ehime
Asked: 2018-09-07 09:29:57 +0800 CST

在 AWS(或其他云提供商)中部署镜像环境有哪些模式和反模式

  • 1

我正在寻找一些用于部署镜像环境的良好模式和反模式(为简单起见,让我们说一个 EC2 实例以及 RDS 和 S3 存储桶,这是一种非常常见的设置)。假设我们必须这样做数百甚至数千次。我已经提出了一些想法,例如

  • 多个帐户 - 单一用途 - 使用所有区域

    • 我们为每个区域部署一个 VPC 实例,并在该区域部署我们的一组服务。
    • 好,保证隔离并且没有noisy neighbors,TF模块或CloudFormation模板不会复杂
    • 糟糕,一场可怕的管理噩梦
  • 单一账户 - 多用途

    • 我们将 VPC 分割成多个子网,并按子网分组部署资源
    • 好,更容易管理,事半功倍
    • 不好,您每个区域的子网数量被软限制为 20 个(16 个区域 * 20),可能存在嘈杂的邻居,网络最终可能会变成意大利面条

我正在寻找更多的方法来做到这一点,以及为什么它们会不好(技术债务、不可维护)或好的(易于重用等)

太感谢了

amazon-web-services
  • 1 个回答
  • 110 Views
Martin Hope
ehime
Asked: 2016-08-06 11:43:18 +0800 CST

尝试安装 svn-1.0.2 失败

  • 0

试图弄清楚这个错误发生了什么,以便我们可以成功安装svn-1.0.2

我正在使用命令,echo -e "\n" |pecl install svn-1.0.2

[email protected][/logs/apache]> echo -e "\n" |pecl install svn-1.0.2
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/svn.so' - /usr/lib64/php/modules/svn.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/geoip.so' - /usr/lib64/php/modules/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oauth.so' - /usr/lib64/php/modules/oauth.so: cannot open shared object file: No such file or directory in Unknown on line 0
downloading svn-1.0.2.tgz ...
Starting to download svn-1.0.2.tgz (25,226 bytes)
.........done: 25,226 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Please provide the prefix of Subversion installation [autodetect] : Please provide the prefix of the APR installation used with Subversion [autodetect] : building in /var/tmp/pear-build-roota11OW6/svn-1.0.2
running: /var/tmp/svn/configure --with-svn --with-svn-apr
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for svn support... yes, shared
checking for specifying the location of apr for svn... yes, shared
checking for svn includes... Found libsvn 1.7.4
checking for apr and apr-util... Found apr 1.4.6
libsvn includes: "-I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
libsvn ldflags: "-lsvn_client-1 -lsvn_fs-1 -lsvn_repos-1 -lsvn_subr-1 -L/usr/lib64 -lapr-1"
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-roota11OW6/svn-1.0.2/libtool --mode=compile cc -I/usr/include/subversion-1  -I/usr/include/apr-1  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/var/tmp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/include -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/main -I/var/tmp/svn -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/svn/svn.c -o svn.lo
libtool: compile:  cc -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/var/tmp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/include -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/main -I/var/tmp/svn -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -c /var/tmp/svn/svn.c  -fPIC -DPIC -o .libs/svn.o
/var/tmp/svn/svn.c: In function ‘init_svn_client’:
/var/tmp/svn/svn.c:354: warning: ‘svn_client_get_simple_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:151)
/var/tmp/svn/svn.c:357: warning: ‘svn_client_get_username_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:198)
/var/tmp/svn/svn.c:360: warning: ‘svn_client_get_ssl_server_trust_prompt_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:265)
/var/tmp/svn/svn.c:364: warning: ‘svn_client_get_ssl_server_trust_file_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:214)
/var/tmp/svn/svn.c:367: warning: ‘svn_client_get_ssl_client_cert_file_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:231)
/var/tmp/svn/svn.c:370: warning: ‘svn_client_get_ssl_client_cert_pw_file_provider’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:248)
/var/tmp/svn/svn.c: In function ‘zif_svn_config_ensure’:
/var/tmp/svn/svn.c:454: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_import’:
/var/tmp/svn/svn.c:495: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:497: warning: ‘svn_client_import’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1885)
/var/tmp/svn/svn.c: In function ‘zif_svn_checkout’:
/var/tmp/svn/svn.c:741: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:742: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:753: warning: ‘svn_client_checkout2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1147)
/var/tmp/svn/svn.c: In function ‘zif_svn_cat’:
/var/tmp/svn/svn.c:825: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_ls’:
/var/tmp/svn/svn.c:895: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:906: warning: ‘svn_client_ls2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4936)
/var/tmp/svn/svn.c: In function ‘zif_svn_log’:
/var/tmp/svn/svn.c:1112: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1128: warning: ‘svn_client_log3’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:2500)
/var/tmp/svn/svn.c: In function ‘zif_svn_diff’:
/var/tmp/svn/svn.c:1283: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1284: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1286: warning: ‘svn_client_diff3’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:2839)
/var/tmp/svn/svn.c: In function ‘zif_svn_cleanup’:
/var/tmp/svn/svn.c:1350: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_revert’:
/var/tmp/svn/svn.c:1391: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1393: warning: ‘svn_client_revert’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:3704)
/var/tmp/svn/svn.c: In function ‘zif_svn_resolved’:
/var/tmp/svn/svn.c:1433: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1435: warning: ‘svn_client_resolved’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:3728)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_file_contents’:
/var/tmp/svn/svn.c:1650: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_file_length’:
/var/tmp/svn/svn.c:1692: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_node_prop’:
/var/tmp/svn/svn.c:1734: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_node_created_rev’:
/var/tmp/svn/svn.c:1779: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_dir_entries’:
/var/tmp/svn/svn.c:1824: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_check_path’:
/var/tmp/svn/svn.c:1869: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_repos_open’:
/var/tmp/svn/svn.c:1932: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:1934: warning: ‘svn_repos_open’ is deprecated (declared at /usr/include/subversion-1/svn_repos.h:383)
/var/tmp/svn/svn.c: In function ‘zif_svn_info’:
/var/tmp/svn/svn.c:2026: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2047: warning: ‘svn_client_info’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:5508)
/var/tmp/svn/svn.c: In function ‘zif_svn_export’:
/var/tmp/svn/svn.c:2099: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2100: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2111: warning: ‘svn_client_export3’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4750)
/var/tmp/svn/svn.c: In function ‘zif_svn_switch’:
/var/tmp/svn/svn.c:2152: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2153: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2161: warning: ‘svn_client_switch’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1440)
/var/tmp/svn/svn.c: In function ‘zif_svn_copy’:
/var/tmp/svn/svn.c:2205: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2206: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2218: warning: ‘svn_client_copy2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:3941)
/var/tmp/svn/svn.c: In function ‘zif_svn_blame’:
/var/tmp/svn/svn.c:2318: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2339: warning: ‘svn_client_blame2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:2670)
/var/tmp/svn/svn.c: In function ‘zif_svn_delete’:
/var/tmp/svn/svn.c:2386: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2388: warning: assignment discards qualifiers from pointer target type
/var/tmp/svn/svn.c:2390: warning: ‘svn_client_delete2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1735)
/var/tmp/svn/svn.c: In function ‘zif_svn_mkdir’:
/var/tmp/svn/svn.c:2459: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2461: warning: ‘svn_client_mkdir2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1630)
/var/tmp/svn/svn.c: In function ‘zif_svn_move’:
/var/tmp/svn/svn.c:2528: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2529: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2531: warning: ‘svn_client_move3’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4113)
/var/tmp/svn/svn.c: In function ‘zif_svn_proplist’:
/var/tmp/svn/svn.c:2591: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2602: warning: ‘svn_client_proplist2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4590)
/var/tmp/svn/svn.c:2630: warning: ‘svn_path_local_style’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:82)
/var/tmp/svn/svn.c:2630: warning: ‘svn_path_local_style’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:82)
/var/tmp/svn/svn.c: In function ‘zif_svn_propget’:
/var/tmp/svn/svn.c:2673: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2684: warning: ‘svn_client_propget2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4484)
/var/tmp/svn/svn.c:2706: warning: ‘svn_path_local_style’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:82)
/var/tmp/svn/svn.c:2706: warning: ‘svn_path_local_style’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:82)
/var/tmp/svn/svn.c: In function ‘zif_svn_repos_create’:
/var/tmp/svn/svn.c:2750: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_repos_recover’:
/var/tmp/svn/svn.c:2795: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2797: warning: ‘svn_repos_recover2’ is deprecated (declared at /usr/include/subversion-1/svn_repos.h:614)
/var/tmp/svn/svn.c: In function ‘zif_svn_repos_hotcopy’:
/var/tmp/svn/svn.c:2835: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2836: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_commit’:
/var/tmp/svn/svn.c:2916: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:2925: warning: ‘svn_client_commit3’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:2018)
/var/tmp/svn/svn.c: In function ‘zif_svn_lock’:
/var/tmp/svn/svn.c:2985: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_unlock’:
/var/tmp/svn/svn.c:3036: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_add’:
/var/tmp/svn/svn.c:3087: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3089: warning: ‘svn_client_add2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1535)
/var/tmp/svn/svn.c: In function ‘zif_svn_status’:
/var/tmp/svn/svn.c:3193: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3198: warning: ‘svn_client_status2’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:2364)
/var/tmp/svn/svn.c: In function ‘zif_svn_update’:
/var/tmp/svn/svn.c:3257: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3262: warning: ‘svn_client_update’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:1315)
/var/tmp/svn/svn.c: In function ‘zif_svn_repos_fs_begin_txn_for_commit’:
/var/tmp/svn/svn.c:3330: warning: ‘svn_repos_fs_begin_txn_for_commit’ is deprecated (declared at /usr/include/subversion-1/svn_repos.h:1920)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_make_file’:
/var/tmp/svn/svn.c:3437: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_make_dir’:
/var/tmp/svn/svn.c:3475: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_apply_text’:
/var/tmp/svn/svn.c:3516: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_copy’:
/var/tmp/svn/svn.c:3564: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3565: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_delete’:
/var/tmp/svn/svn.c:3604: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_is_file’:
/var/tmp/svn/svn.c:3681: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_is_dir’:
/var/tmp/svn/svn.c:3720: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_change_node_prop’:
/var/tmp/svn/svn.c:3760: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_contents_changed’:
/var/tmp/svn/svn.c:3811: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3812: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c: In function ‘zif_svn_fs_props_changed’:
/var/tmp/svn/svn.c:3859: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/var/tmp/svn/svn.c:3860: warning: ‘svn_path_canonicalize’ is deprecated (declared at /usr/include/subversion-1/svn_path.h:282)
/bin/sh /var/tmp/pear-build-roota11OW6/svn-1.0.2/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/include -I/var/tmp/pear-build-roota11OW6/svn-1.0.2/main -I/var/tmp/svn -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -DHAVE_CONFIG_H  -g -O2   -o svn.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-roota11OW6/svn-1.0.2/modules  svn.lo -Wl,-rpath,/usr/lib64 -L/usr/lib64 -lsvn_client-1 -lsvn_fs-1 -lsvn_repos-1 -lsvn_subr-1 -lapr-1
/bin/grep: /usr/lib64/libneon.la: No such file or directory
/bin/sed: can't read /usr/lib64/libneon.la: No such file or directory
libtool: link: `/usr/lib64/libneon.la' is not a valid libtool archive
make: *** [svn.la] Error 1
ERROR: `make' failed
svn make pecl
  • 2 个回答
  • 362 Views
Martin Hope
ehime
Asked: 2016-05-12 09:21:28 +0800 CST

在 PATH 环境变量中使用相对路径的安全隐患?

  • 7

我们有一个审计只是标记我们在$PATHenv 变量中具有相对路径。我不确定这是否真的是一个安全问题,并且想与每个人联系,看看这是否真的是一个安全问题,或者它是否只是我认为的最佳实践。有人可以提供有关$PATH与亲戚一起使用的任何安全问题的信息吗?谢谢

linux security environment-variables
  • 2 个回答
  • 3555 Views
Martin Hope
ehime
Asked: 2016-02-16 11:22:05 +0800 CST

从服务器集群发出单个命令?

  • 1

我有一个服务器集群,它们将运行一个ruok带有故障转移的简单命令。该命令将很简单,例如curl -X POST http://foo.com/status. 由于我将在此池中拥有 3 到 300 个节点,因此我想确保此命令仅每十分钟发出一次。我遇到了一个问题,我不能只向我的服务器添加一个 crontab,除非我希望它们都每 X 分钟发出一次。

我开始考虑使用HashiCorp Consul,因为它具有相当高的可用性并且看起来比etcdor更容易Zookeeper。我不知道如何实际创建可以做到这一点的东西。

我将在所有服务器上使用此脚本

#!/bin/bash

curl -i -H "Accept: application/json" \
-H "Content-Type:application/json"    \
-X POST --data '{"status":"ruok"}' "https://foobar.com/status"

那么我将如何编写 Consul 以便在节点池中运行一次呢?

bash
  • 1 个回答
  • 46 Views
Martin Hope
ehime
Asked: 2016-02-09 14:00:15 +0800 CST

Ansible 运行以 MODULE FAILURE 告终?

  • 8

我无法再弄清楚这一点,因为我不知道从 ansible 中获取“真实”错误消息。我运行以下

$ ansible -i /opt/ansible/ec2.py "tag_Function_app:&tag_Application_pro:&tag_Environment_pqa"   --private-key=~/.ssh/id_root_rsa -m shell --sudo -a "service httpd restart" -u root 

但最终会出现一个非常不起眼的错误

10.221.142.0 | FAILED | rc=0 >>
MODULE FAILURE

到底发生了什么?有没有办法让我进一步调试这个?尝试严格使用用户 / sshkey 进行 ssh 可以正常工作吗?

ansible
  • 4 个回答
  • 24220 Views
Martin Hope
ehime
Asked: 2015-09-15 12:56:15 +0800 CST

服务器的行为驱动开发?

  • 2

我一直在寻找是否有任何用于服务器的 BDD,在 Cucumber 或 Behat 方面是否有类似的东西?有一些语法糖的东西,例如:

Feature: jre
  In order to use our monitoring software
  As a UNIX user
  I need to have JRE version at 8

  Scenario:
    Given I am in the directory "/usr/local/bin"
    And I have a file named "java" 
    When I run "java -version"
    Then I should get:
      """
      java version "1.8.*"
      """
linux
  • 3 个回答
  • 424 Views
Martin Hope
ehime
Asked: 2015-06-24 22:12:46 +0800 CST

Amazon Linux 使用 Packer 构建?

  • 2

我一直在努力追查这一点,但显然没有找到正确的文档。是否可以(以及如何)使用 Packer 构建 Amazon Linux 机器?如果是这样,这是否只是预先构建的镜像 AMI?我知道 Amazon Linux 本身没有 ISO,所以这行不通,所以我试图弄清楚如何实现这一点的方法。

amazon-linux
  • 1 个回答
  • 806 Views
Martin Hope
ehime
Asked: 2015-05-01 08:01:11 +0800 CST

自动从堡垒转发到下一个服务器?

  • 0

我们在工作中在我们的 VPC 中使用 Bastion 连接到多个私有服务器,我设置了别名(ssh 主机别名)来加快弹跳到下一个服务器的过程,但这是一个缓慢的过程,许多用户最终都喜欢我们配置以找到适当的别名。我想想办法让我们的用户能够通过 Bastion 进行 ssh / sftp?有谁知道可接受的方法?我简要地查看了 mosh-server 但不确定这是否是正确的方法。

ssh
  • 1 个回答
  • 236 Views
Martin Hope
ehime
Asked: 2014-09-05 09:50:56 +0800 CST

能否使用 SSH 密钥/PEM 进行 Web 身份验证来代替密码保护?

  • 1

我一直在试图找出一种方法来进一步锁定我们的开发站点,并且提出了一个想法,即使用更类似于 PEM 密钥的东西,而不是使用以 IP 为中心的密码保护,就像我用于 ssh 一样进入服务器。我很好奇这是否可行,以及如何设置。我查看了 Apache AuthType 文档,发现它支持除 Basic 之外的多种东西,例如 Digest 和 Form,我很好奇我是否可以利用其中任何一个,或者可能利用其他东西来让我们的服务器端口 80和 443 只能在出示证书时查看?

security
  • 2 个回答
  • 219 Views
Martin Hope
ehime
Asked: 2014-06-17 11:28:41 +0800 CST

在没有注册域的情况下设置 Postfix 的 sender_dependent_relayhost

  • 0

我一直在尝试将 SES 与我的 EC2 实例(没有 DNS 记录)链接起来,并试图弄清楚如何对我的sender_dependent_relayhost. 由于我没有与我的 ip 关联的 DNS 记录,我是否可以使用我的服务器 ip 而不是我的 DNS?

我认为我的 sender_dependent_relayhost 配置如下所示

$ cat /etc/postfix/sender_dependent_relayhost:
user@someip                   127.0.0.1:1125

这可以代替输入合格的域名吗?

我正在遵循此链接Postfix with AWS-SES中的设置

ubuntu
  • 1 个回答
  • 460 Views
Martin Hope
ehime
Asked: 2014-05-29 05:55:44 +0800 CST

mod_caucho 构建失败,没有名为“remote_ip”的成员?

  • 0

我正在尝试让我的模块正确构建,但看起来它与 Apache 2.4 有问题。看起来这是一个已知问题,并且为mod_authnz_external.c发布了补丁。不幸的是,这并没有为我自己提供修复,因为我没有实现 authnz_external。这是我的日志记录转储。

配置

制作

进行安装

apache-2.4
  • 1 个回答
  • 649 Views
Martin Hope
ehime
Asked: 2014-01-31 11:30:40 +0800 CST

在 AWS EC2 实例上不尊重 DirectoryIndex

  • 0

嘿伙计们,我的 AWS EC2 实例遇到了一个非常奇怪的问题。我已经使用 PHP5.5 MariaDB 和 Apache2 设置了我的 LAMP 堆栈,我已经创建/启用了我的 conf 文件(如下)

<VirtualHost *:80>

    ServerName localhost
    DocumentRoot /var/www

    SetEnv  APPLICATION_ENV live

    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews

        DirectoryIndex index.html index.php

        Order allow,deny
        AllowOverride All
        Allow from All
    </Directory>

    <IfModule mod_rewrite>
        RewriteEngine On
    </IfModule>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

甚至尝试在我的 webroot 中删除带有 DirectoryIndex 的 htaccess。这些似乎都不尊重我的 DirectoryIndex?有任何想法吗?mod_dir是启用的,还有mod_rewrite,你觉得这两个Apache之间能搞定吗??

您可以使用http://54.200.197.102/检查一下,安全组设置为允许在 80 上,您可以在此处查看我的 var dub 目录结构

-rw-r--r--  1 ubuntu ubuntu   4566 Jan 30 18:58 backup
-rw-rw-r--  1 ubuntu ubuntu     50 Jan 30 19:10 .htaccess
-rw-rw-r--  1 ubuntu ubuntu     12 Jan 30 19:09 index.html
-rw-rw-r--  1 ubuntu ubuntu      4 Jan 30 18:51 index.php

htaccess的内容如下

DirectoryIndex index.php index.html

我真的很茫然吗?

ubuntu
  • 2 个回答
  • 838 Views
Martin Hope
ehime
Asked: 2013-12-26 15:14:54 +0800 CST

使用 httpd 设置子域的问题

  • 0

嘿,我在让我的子域显示时遇到问题,我正在使用 HTTPD 并已在 conf.d 中设置了我的 conf 并关注

<VirtualHost *:80>
    ServerName wp.{domain}.com
    SetEnvIfNoCase HOST ^wp\.{domain}\.com\.?(:80)?$ PROTECTED_HOST

    DocumentRoot /var/www/html/wp.{domain}.com

    LogLevel info ssl:warn
    ErrorLog ${APACHE_LOG_DIR}/wp.error.log
    CustomLog ${APACHE_LOG_DIR}/wp.access.log combined

    DirectoryIndex index.php

    SetEnv APPLICATION_ENV development

    <Directory /var/www/html/wp.{domain}.com/>
        AuthUserFile /root/htpasswd
        AuthType Basic
        AuthName "Password Protected"

        Order Deny,Allow
        Satisfy any
        Deny from all
        Require valid-user
        Allow from env=!PROTECTED_HOST
    </Directory>
</VirtualHost>

我也把它放在我的 httpd.conf

我的主机文件如下所示

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1       {domain}.com        wp.{domain}.com
192.237.179.187 {domain}.com        wp.{domain}.com
10.208.155.37   serve.smart.com     wp.{domain}.com

我得到的错误是_default_ VirtualHost overlap on port 80, the first has precedence

添加NameVirtualHost *:80我的子域时停止工作

我该如何解决?

httpd
  • 1 个回答
  • 226 Views
Martin Hope
ehime
Asked: 2013-11-15 12:40:49 +0800 CST

qt47-webkit-devel 安装冲突?

  • 0

我在尝试qt47-webkit-devel在 CentOS 6.4 服务器上安装时遇到了几个冲突,冲突的核心在这里:

--> Processing Conflict: 1:qt47-x11-4.7.2-1_18.el6.x86_64 conflicts qt-x11 < 1:4.7.2-1_18.el6
--> Processing Conflict: 1:qt47-x11-4.7.2-1_18.el6.x86_64 conflicts qt4-x11 < 1:4.7.2-1_18.el6
--> Processing Conflict: 1:qt47-x11-4.7.2-1_18.el6.x86_64 conflicts phonon < 4.3.80-1
--> Processing Conflict: 1:qt47-devel-4.7.2-1_18.el6.x86_64 conflicts qt4-devel < 1:4.7.2-1_18.el6
--> Processing Conflict: 1:qt47-devel-4.7.2-1_18.el6.x86_64 conflicts phonon-devel < 4.3.80-1
--> Finished Dependency Resolution
Error: qt47-devel conflicts with 1:qt-devel-4.6.2-26.el6_4.x86_64
Error: qt47-x11 conflicts with 1:qt-x11-4.6.2-26.el6_4.x86_64

这里有一个pastebin:http: //pastebin.com/YwF6gvfx

如果有人可以帮助我解决这个问题,我将不胜感激

centos6
  • 1 个回答
  • 838 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