就在最近,我的服务器已经停止了对我的Web服务器的https://地址的curl请求.稍微挖了一下,看起来这是网络服务器运行的用户的问题.
如果我以root用户身份SSH到服务器上并打电话
curl -I -v https://google.com
Run Code Online (Sandbox Code Playgroud)
...我收到以下回复......
* About to connect() to google.com port 443 (#0)
* Trying 173.194.67.113... connected
* Connected to google.com (173.194.67.113) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_SHA
* Server certificate:
* subject: CN=*.google.com,O=Google Inc,L=Mountain View,ST=California,C=US
* start date: May 22 15:50:20 2013 GMT
* expire date: Oct 31 23:59:59 2013 GMT
* common name: *.google.com
* issuer: CN=Google Internet Authority,O=Google Inc,C=US
> HEAD …
Run Code Online (Sandbox Code Playgroud) 对于我正在开发的角色,我需要验证内核版本是否大于特定版本.
我找到了ansible_kernel值,但是有一种简单的方法可以将它与其他版本进行比较吗?我以为我可能手动爆炸'.'上的版本字符串并比较数字,但我甚至找不到友好的过滤器来爆炸版本字符串,所以我不知所措.
提前致谢.
Ť
我有一个使用ack-grep
负向前看的问题.
我正在运行此命令:
ack-grep "paypal_responded(?!_at)"
Run Code Online (Sandbox Code Playgroud)
但我收到错误:
bash: !_at: event not found
Run Code Online (Sandbox Code Playgroud)
我曾尝试在各个地方添加反斜杠,但我也是新手使用ack和linux,所以请把我作为一个新手用任何指示.
提前致谢.
有没有人知道是否可以定义一个CSS选择器来选择div中的第一个图像,但前提是它是div中的第一个子图像.
在jQuery中我会使用这样的比较......
if ($('#div img:first-child') == $('#div>*:first-child')) {
...
}
Run Code Online (Sandbox Code Playgroud) 我刚刚在我的机器上设置了 Docker 并且有一个 Nginx/PHP7 (FPM)/MySQL 设置一切正常,但是在 PHP 容器上安装了 Xdebug 我无法让它连接回我主机上的 PHPStorm。
这是我的 PHP Xdebug 配置...
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-
20151012/xdebug.so
xdebug.remote_log=/usr/local/var/log/xdebug.log
xdebug.remote_enable=1
xdebug.remote_host=192.168.99.1
xdebug.remote_port=9000
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
Run Code Online (Sandbox Code Playgroud)
浏览时,如果为容器设置了 Xdebug 启用 cookie,则不会提示连接。如果我浏览一个本地托管的站点,那么我知道 PHPStorm 的收听是正确的。
在本地机器上,我可以 telnet 到端口 9000...
$ telnet 192.168.99.1 9000
Trying 192.168.99.1...
Connected to 192.168.99.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
Run Code Online (Sandbox Code Playgroud)
...但是我不能从 boot2docker VM 或容器。当我尝试时,它只是坐在那里什么都不做。然而,VM 和容器都可以很好地 ping 主机。
我试过禁用我的 Mac 的防火墙,但仍然没有乐趣。
我不太确定如何禁用 boot2docker VM 上的防火墙。
任何有关为什么这不起作用的见解都将受到极大欢迎。提前致谢。
我对复杂的配置相当新,我试图在amazon linux EC2实例上设置ffmpeg,使用这里的指令...
http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
...但是当我尝试下面这行时,我碰到了一堵墙......
yum install glibc gcc gcc-c++ autoconf automake libtool
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误......
Package matching glibc-2.5-107.x86_64 already installed. Checking for update.
Package matching autoconf-2.59-12.noarch already installed. Checking for update.
Package matching automake-1.9.6-2.3.el5.noarch already installed. Checking for update.
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-54.el5 will be installed
--> Processing Dependency: cpp = 4.1.2-54.el5 for package: gcc-4.1.2-54.el5.x86_64
Package cpp is obsoleted by cpp44, but obsoleting package does not provide for requirements
---> Package gcc-c++.x86_64 0:4.1.2-54.el5 will be …
Run Code Online (Sandbox Code Playgroud) linux ×2
ack ×1
ansible ×1
ansible-2.x ×1
boot2docker ×1
centos ×1
command-line ×1
css ×1
curl ×1
docker ×1
nss ×1
php ×1
ssl ×1
xdebug ×1
yum ×1