请向我建议我可以清理的任何特定的不必要文件,以将所有内容恢复到正常状态(暂时)。(即任何日志或档案或任何东西)。我的 var/log 只有 40MB 而主目录有 3GB 的空间(所以我相信这不是问题)。除此之外,我可以清理以腾出空间。
[user@host]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_inamivm-lv_root
18G 17G 0 100% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 485M 71M 389M 16% /boot
Run Code Online (Sandbox Code Playgroud)
我在 debian 机器上。
更新1:
输出 cd /; du -sxh *
6.1M bin
61M boot
156K dev
22M etc
3.3G home
306M lib
18M lib64
16K lost+found
4.0K media
4.0K mnt
408K opt
du: cannot access `proc/18605/task/18605/fd/4': No such file or directory
du: cannot access `proc/18605/task/18605/fdinfo/4': …
Run Code Online (Sandbox Code Playgroud) 我试图在我的远程服务器上安装 Ruby。(这是 ESXi 服务器中的虚拟机 (Debian)。)我收到此错误:
$ sudo apt-get install ruby1.8
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
Run Code Online (Sandbox Code Playgroud)
然后我试过:
$ sudo dpkg --configure -a
dpkg: unable to access dpkg status area: Read-only file system
Run Code Online (Sandbox Code Playgroud)
$ mount
/dev/sda3 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs …
Run Code Online (Sandbox Code Playgroud) 如何使用traceroute
unix 命令确定服务器是否缓慢。这是traceroute
主机 IP的输出。
traceroute 188.165.247.43
traceroute to 188.165.247.43 (188.165.247.43), 30 hops max, 60 byte packets
1 iPhone.local (172.20.10.1) 1.493 ms 2.546 ms 3.287 ms
2 * * *
3 10.52.141.50 (10.52.141.50) 782.228 ms 784.069 ms 786.188 ms
4 10.52.141.54 (10.52.141.54) 786.491 ms 786.510 ms 786.927 ms
5 10.52.92.237 (10.52.92.237) 787.157 ms 788.059 ms 788.001 ms
6 aircel-gprs-177.5.251.27.aircel.co.in (27.251.5.177) 787.140 ms 98.452 ms 100.978 ms
7 114.79.219.41 (114.79.219.41) 158.391 ms 161.252 ms 161.610 ms
8 abs-cn-61.194.148.202.aircel.co.in (202.148.194.61) …
Run Code Online (Sandbox Code Playgroud) 我在两个系统上都运行了 rsyncd。当我尝试检查连接时,它给了我以下错误:
来自主机 2:
user@host2#rsync username@host1::share
password: [password]
@ERROR: auth failed on module share
rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver=3.0.7]
Run Code Online (Sandbox Code Playgroud)
在主机 1 上:
我有以下配置
vim /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[share]
comment = Public Share
path = /home/subhransu
read only = no
list = yes
uid = backuppc
gid = backuppc
auth users = backuppc
secrets file = /etc/rsyncd.secrets
Run Code Online (Sandbox Code Playgroud)
在主机 1 上
tail /var/log/rsync.log
2013/04/09 03:47:15 [29179] forward …
Run Code Online (Sandbox Code Playgroud) 是否有任何特定命令可以找出在专用服务器中运行的服务器(例如:apache2、mysql-server、backup-server 等)?
如果我重新启动我的专用服务器,它们会自动启动吗?
重新启动所有应用程序服务器在其中运行的专用服务器的安全方法是什么?
注意:我在专用的 Debian 服务器中。
linux ×2
apt ×1
debian ×1
dpkg ×1
filesystems ×1
internet ×1
ip ×1
mount ×1
networking ×1
rsync ×1
traceroute ×1