当我运行时yum repolist,我没有看到列出了 EPEL。
# yum repolist
Loaded plugins: downloadonly, fastestmirror, protectbase, refresh-packagekit,
: security
Loading mirror speeds from cached hostfile
* base: centos.mia.host-engine.com
* extras: mirror-centos.hostingswift.com
* updates: centos-mirror.jchost.net
0 packages excluded due to repository protections
repo id repo name status
base CentOS-6 - Base 6,518
extras CentOS-6 - Extras 35
updates CentOS-6 - Updates 209
repolist: 6,762
Run Code Online (Sandbox Code Playgroud)
我跟着http://xmodulo.com/how-to-set-up-epel-repository-on-centos.html
这些说明向我展示了如何安装 RPM 和 GPG 密钥。我做过的:
# sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
Retrieving http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.
rpm
Preparing... ########################################### [100%]
package epel-release-6-8.noarch …Run Code Online (Sandbox Code Playgroud) 基本上,我正在尝试这样做:
some_other_program | curl ftp://username:password@192.168.1.10/file.txt
作为一个测试用例,看看我是否可以让它工作,我正在尝试cat这样:
cat test.txt | curl -d @- ftp://admin:PASS@192.168.1.10/file.txt
注意,我试过了-d @-,但没有用。我该怎么做呢?
这个问题是类似的,但那个是关于 HTTP 的,我的问题是关于 FTP。
为什么它在可用列中显示 0?
[root@server log]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 4128448 4096484 0 100% /
Run Code Online (Sandbox Code Playgroud)
这是一个 ext3 文件系统。