我尝试在vps上设置openvpn,并且能够build立到服务器的连接,但网关没有分配给客户端。 这是我的configuration文件: 客户端configuration: client dev tun proto udp remote foo.bar 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert client1.crt key client1.key ns-cert-type server redirect-gateway comp-lzo verb 3 pull 服务器configuration: port 1194 proto udp dev tun ca easy-rsa/2.0/keys/ca.crt cert easy-rsa/2.0/keys/server.crt key easy-rsa/2.0/keys/server.key dh easy-rsa/2.0/keys/dh2048.pem server 172.30.90.0 255.255.255.192 ifconfig-pool-persist ipp.txt push "redirect-gateway def1" push "dhcp-option DNS […]
我试图编写一个脚本,通过SSH从思科路由器提取configuration文件并parsing它们,这样我就可以确保它们符合预定义的标准(例如,密码不应该是“cisco”)。 以编程方式连接到路由器和运行命令很简单。 我遇到的障碍是运行show running config返回全局configuration设置以及特定接口的设置。 我的目标是处理与全局设置不同的接口设置; 例如,我可以忽略禁用的接口上的错误设置。 是否有单独的命令获取全局设置和获取接口定义(例如show global settings和show interface settingstypes的命令)? 另外,有没有更好的方法,我可以检索这些信息,这将更容易parsing?
我想脚本添加一个共享到一个smb.conf文件。 我当前的脚本只是附加到文件的末尾,但这并不理想。 如果它不存在,我宁愿有一些将添加一个新的共享,并且如果它存在,则replace它。 我目前正在使用CentOS 7发行版来编写脚本,但是理想情况下,它们可能会在发行版中起作用,尽pipe这不是必需的。 另外,我正在使用bash来执行此操作,因为脚本是在其他程序包添加到系统之前运行的。 该脚本使用yum来安装samba包,然后应该configuration它并添加共享。
我目前已经安装并configuration了PHP v5.3.3。 一切正常,但我想保持最新的PHP并升级到v5.3.4。 有人可以在手动编译时描述通常的PHP升级过程吗? 例如:是否就像下载最新的源代码一样简单,解压缩,使用上一版本中使用的相同(或类似)选项编译它? 是否有任何必须删除或更改以前的版本安装? 我无能为力 请帮忙! 编辑: 我认为一般的共识是备份,在testing服务器上尝试,并logging一切 。 感谢您的反馈!
我想知道是否可以得到比较原始与当前的安装debian软件包的configuration文件。 如果find一个答案,显示修改后的configuration文件,但我觉得没有办法生成差异。 命令是 dpkg-query -W -f='${Conffiles}\n' '*' | awk 'OFS=" "{print $2,$1}' | LANG=C md5sum -c 2>/dev/null | awk -F': ' '$2 !~ /OK/{print $1}' | sort | less
我正在尝试在php-fpm中设置一个池的configuration,但是在某些时候,它只是不能启动了。 php_admin_value[disable_functions] = dl,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,pcntl_exec,include,include_once,require,require_once,posix_mkfifo,posix_getlogin,posix_ttyname,getenv,get_current_use,proc_get_status,get_cfg_va,disk_free_space,disk_total_space,diskfreespace,getcwd,getlastmo,getmygid,getmyinode,getmypid,getmyuid,ini_set,mail,proc_nice,proc_terminate,proc_close,pfsockopen,fsockopen,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,fopen,tmpfile,bzopen,gzopen,chgrp,chmod,chown,copy,file_put_contents,lchgrp,lchown,link,mkdi,move_uploaded_file,rename,rmdi,symlink,tempnam,touch,unlink,iptcembed,ftp_get,ftp_nb_get,file_exists,file_get_contents,file,fileatime,filectime,filegroup,fileinode,filemtime,fileowne,fileperms,filesize,filetype,glob,is_di,is_executable,is_file,is_link,is_readable,is_uploaded_file,is_writable,is_writeable,linkinfo,lstat,parse_ini_file,pathinfo,readfile,readlink,realpath,stat,gzfile,create_function 当试图重新启动php-fpm时失败,并显示以下消息: Stopping php-fpm: [ OK ] Starting php-fpm: [20-Oct-2013 22:31:52] ERROR: [/etc/php-fpm.d/codepad.conf:235] value is NULL for a ZEND_INI_PARSER_ENTRY [20-Oct-2013 22:31:52] ERROR: Unable to include /etc/php-fpm.d/codepad.conf from /etc/php-fpm.conf at line 235 [20-Oct-2013 22:31:52] ERROR: failed to load configuration file '/etc/php-fpm.conf' [20-Oct-2013 22:31:52] ERROR: FPM initialization failed [FAILED] 当我删除最后一个禁用的function( create_function )它再次开始。 我也尝试了其他函数,但是这给出了相同的错误,所以它与create_function函数无关。 目前的string大小只有1KB以上,所以看起来我已经达到了极限了。 […]
在dhcpd.conf中可以忽略来自一组MAC地址的请求吗? 像这样的东西: host vminstances { hardware ethernet d0:0d:*; ignore booting; }
Rsyslog与Syslogconfiguration文件向后兼容。 syslog.conf手册页包含: 您可以用减号“ – ”符号前缀每个条目,以便在每次logging后省略同步文件。 请注意,如果系统在写入尝试后崩溃,则可能会丢失信息。 尽pipe如此,这可能会给你一些性能,特别是如果你运行使用非常详细的日志logging的程序。 但是我找不到有关man rsyslog.conf 。 什么是rsyslog时,如果读取-在configuration文件?
基本上,我有两台物理服务器(两台ESXi主机都相同,每台主机都有2个双核千兆网卡)位于数据中心的专用机架中。 他们都将运行各种db / web / storage服务器guest,并且每个都有一个大的冗余存储arrays来备份另一个虚拟机的冗余。 每台计算机都有两个上行链路(每个网卡一个)到数据中心的交换机,其余两个(每个网卡一个)直接连接在一起,没有交换机,原因有三:数据传输安全性,独立于数据中心networking设备和速度。 我的问题是:如何configuration这些主机,以便ESXi主机1上的访客Web服务器通过其专用连接连接到ESXi主机2上的数据库服务器? 具体而言,需要在ESXi服务器上configuration哪些内容才能添加新的虚拟NIC,并为与其他guest虚拟机的内部通信分配私有IP地址。 如果您需要任何额外的细节,我将密切监视线程进行更新。 谢谢!
编辑这个问题,抱歉的混淆 我需要做cron作业来备份驻留在远程服务器上的目录,在运行cron作业的机器上备份。 远程服务器没有rsync这就是为什么我这样做。 远程服务器名称是雅典,我要备份的目录是/ disk3 / nicolas / scripts 唯一允许的连接是ssh,这是可行的。 我启动这个命令将SRC(athens :: disk3 / nicolas / scripts /)复制到当前目录 rsync –verbose athens::disk3/nicolas/scripts/ . rsync: failed to connect to athens: Connection refused (61) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-40/rsync/clientserver.c(105) [receiver=2.6.9] 有什么我需要在远程服务器上编辑? 也许inetd.conf? 如问,我正在使用rsync版本2.6.9。 在我的rsync版本中没有-e选项来强制ssh,-e选项是指定要使用的远程shell。 我不能增加更多的冗长。