大家好,在 etc/crontab 中使用 Ubuntu10 进入我的服务器 linux 我有这个:
0 0 * * * user rdiff-backup -v9 user@111.111.111.111::/var/www/ /mnt/server1/www
0 1 * * * user rdiff-backup -v9 user@222.222.222.222::/var/www/ /mnt/server2/www
0 2 * * * user rdiff-backup -v9 user@333.333.333.333::/var/www/ /mnt/server3/www
Run Code Online (Sandbox Code Playgroud)
例如,服务器有一个 2Tb 的硬盘,我的备份大约占用了 1Tb。
我每天晚上都做备份,现在如果这个备份工作一年或更长时间,我的硬盘空间我认为会减少,因为 rdiff-backup 制作了更改文件的历史记录。
是否可以限制到我的 crontab 中来限制历史记录和维护控制的硬盘空间?类似于:“30 版本后取消最旧的”。
可以将其放入我的文件 crontab 中吗?
进入我的linux服务器(Ubuntu 8),我已经为ntp打开了123端口。我已将其写入/etc/iptables.rules:
:INPUT ACCEPT [7496:9080183]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [4393:322232]
[0:0] -A INPUT -p udp -m udp --sport 8100 -j ACCEPT
[0:0] -A INPUT -p udp -m udp --dport 8100 -j ACCEPT
[0:0] -I INPUT -p udp --dport 123 -j ACCEPT
[0:0] -I OUTPUT -p udp --sport 123 -j ACCEPT
COMMIT
Run Code Online (Sandbox Code Playgroud)
但是如果我启动这个命令:
nmap localhost -p123
Run Code Online (Sandbox Code Playgroud)
回我:
Starting Nmap 4.53 ( http://insecure.org ) at 2013-03-28 12:05 CET
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
123/tcp closed ntp
Run Code Online (Sandbox Code Playgroud)
如果我吃这个
ntpdate …
Run Code Online (Sandbox Code Playgroud) 我有一个 linux 服务器(Ubuntu),其中一些用户可以通过 ssh 连接。是否可以知道谁连接到服务器?过去一天通过 ssh 登录的一种列表。可以找回吗?
大家好,进入我的 Ubuntu 服务器,我想阻止所有人的 ftp 端口,但我在启动命令时:
iptables -A INPUT -p tcp --destination-port 21 -j DROP
Run Code Online (Sandbox Code Playgroud)
返回此错误:iptables: No chain/target/match by that name
命令行:
root@webanddesignsrl-one:/# iptables -A input -p tcp --destination-port 21 -j DROP
iptables: No chain/target/match by that name.
Run Code Online (Sandbox Code Playgroud)
我看到很多关于它的问题:
iptables:没有该名称的链/目标/匹配
https://serverfault.com/questions/422103/iptables-no-chain-target-match-by-that-name iptables 错误:没有该名称的
链/目标/匹配?
没有人帮助我。我该如何解决?
服务器是 Ubuntu 10.04
lsmod 的输出是:
binfmt_misc 7960 1
act_police 4620 0
cls_flow 7754 0
cls_fw 4283 0
cls_u32 6698 0
sch_htb 15660 0
sch_hfsc 15167 0
sch_ingress 2098 0
sch_sfq 5863 0
xt_time 2181 0 …
Run Code Online (Sandbox Code Playgroud)