我不知道为什么它无法打开配置文件.
$ ll /etc/vsftpd/vsftpd.conf
-rw-r--r-- 1 xuehui1 root 4182 Aug 20 2012 /etc/vsftpd/vsftpd.conf //exits
$ sudo /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf
Run Code Online (Sandbox Code Playgroud)
这是vsftpd.conf,它适用于其他Linux机器(centos),但这一个?任何帮助将不胜感激..
# Example config file /etc/vsftpd/vsftpd.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You …Run Code Online (Sandbox Code Playgroud) 如何逃避特殊性格?我想打印减号.
echo \-; # Output:-
echo '-n'; #Output: nothing!
Run Code Online (Sandbox Code Playgroud) 我想抓取ab发送或接收的HTTP数据包.
所以我在shell命令中添加了一个http_proxy:
$ export http_proxy=127.0.0.1:8888
Run Code Online (Sandbox Code Playgroud)
然后我执行ab命令:
$ ab -c 1 -n 1 http://localhost/
Run Code Online (Sandbox Code Playgroud)
最后,我的代理(127.0.0.1:8888)无法从ab获取http数据包.
有没有办法让ab通过http_proxy访问http?
这是我的环境:Mac OSX 10.10.3
为什么在下面的代码中带有对象基的元类会引发元类冲突异常?
“元类冲突:派生类的元类必须是其所有基类的元类的(非严格)子类”
class M_A(object): pass
class A(object, metaclass = M_A): pass
Run Code Online (Sandbox Code Playgroud)
另一个代码也是如此:
class M_A(list): pass
class A(object, metaclass = M_A): pass
Run Code Online (Sandbox Code Playgroud)
我知道cpython会将上面的代码解释为:
A = M_A.__new__(M_A, 'A', (object,), {})
Run Code Online (Sandbox Code Playgroud)
让我困惑的是 A 的基类是object,任何类都是object的子类。这个错误太奇怪了。我怎么了?