root@Singapore:~# apt-get install pptpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bcrelay ppp
The following NEW packages will be installed:
bcrelay ppp pptpd
0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.
Need to get 0 B/460 kB of archives.
After this operation, 1530 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
FATAL -> Failed to fork.
root@Singapore:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 10G 2.7G 7.4G 27% /
none 128M 8.0K 128M 1% /dev
none 26M 1.1M 25M 5% /run
none 5.0M 0 5.0M 0% /run/lock
none 128M 0 128M 0% /run/shm
root@Singapore:~# free -m
total used free shared buffers cached
Mem: 256 167 88 0 0 59
-/+ buffers/cache: 108 147
Swap: 0 0 0
http://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html -> apt-history install
http://forum.openvz.org/index.php?t=msg&goto=38046&
root@Singapore:/var/log# cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier障碍 limit failcnt
826: kmemsize 10090664 17158144 2147483646 2147483646 0
lockedpages 0 0 999999 999999 0
privvmpages 29281 65516 65536 65536 14
shmpages 2841 5564 32768 32768 0
dummy 0 0 0 0 0
numproc 27 78 999999 999999 0
physpages 41899 65536 0 65536 0
vmguarpages 0 0 32768 2147483647 0
oomguarpages 21751 31438 32768 2147483647 0
numtcpsock 129 593 7999992 7999992 0
numflock 7 13 999999 999999 0
numpty 1 2 500000 500000 0
numsiginfo 0 30 999999 999999 0
tcpsndbuf 3266296 11425048 214748160 396774400 0
tcprcvbuf 6289120 21288576 214748160 396774400 0
othersockbuf 48552 134536 214748160 396774400 0
dgramrcvbuf 0 25760 214748160 396774400 0
numothersock 56 89 7999992 7999992 0
dcachesize 3696653 5748878 2147483646 2147483646 0
numfile 659 1135 23999976 23999976 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 24 24 999999 999999 0
http://web-linux.blogspot.com/2010/10/what-is-cat-procuserbeancounters-in.html
* privvmpages
This is the memory allocation limit. This parameter allows controlling the amount of memory allocated by applications. If the failcnt value increases on this parameter, most likely there is not a sufficient amount of memory available to run the application.
Reboot the vps machine
root@Singapore:~# apt-get install pptpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bcrelay ppp
The following NEW packages will be installed:
bcrelay ppp pptpd
0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.
Need to get 0 B/460 kB of archives.
After this operation, 1530 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "zh_CN.UTF-8",
LC_MONETARY = "zh_CN.UTF-8",
LC_ADDRESS = "zh_CN.UTF-8",
LC_TELEPHONE = "zh_CN.UTF-8",
LC_NAME = "zh_CN.UTF-8",
LC_MEASUREMENT = "zh_CN.UTF-8",
LC_IDENTIFICATION = "zh_CN.UTF-8",
LC_NUMERIC = "zh_CN.UTF-8",
LC_PAPER = "zh_CN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package ppp.
(Reading database ... 26461 files and directories currently installed.)
Unpacking ppp (from .../ppp_2.4.5-5ubuntu1_amd64.deb) ...
Removing any system startup links for /etc/init.d/ppp ...
Selecting previously unselected package bcrelay.
Unpacking bcrelay (from .../bcrelay_1.3.4-5ubuntu2_amd64.deb) ...
Selecting previously unselected package pptpd.
Unpacking pptpd (from .../pptpd_1.3.4-5ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up ppp (2.4.5-5ubuntu1) ...
Setting up bcrelay (1.3.4-5ubuntu2) ...
Setting up pptpd (1.3.4-5ubuntu2) ...
Starting PPTP Daemon: pptpd.
So, last, I have successfully install the software.
How many memory does the apt-get install use?
Is there any way to free the memory and then we can install software without reboot the server?
没有评论:
发表评论