CentOS 5 (8)

Memcached centos 5 设置

  (3) 設置memcached vim /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="512" OPTIONS="" (4) 啟動memcached # Set Memcached to start automatically on boot chkconfig memcached on # Start Memcached /etc/init.d/memcached start ## OR ## service memcached start (5) 檢查memcached是否正常的運作。 yum install nc   nc = netcat echo stats | nc localhost 11211 STAT pid 7599 STAT uptime 10 STAT time 1265288542 STAT version 1.4.4 STAT pointer_size 32 STAT rusage_user 0.003999 STAT rusage_system 0.052991 STAT curr_connections 10 STAT total_connections 11 STAT connection_structures 11 STAT cmd_get 0 STAT cmd_set 0 STAT cmd_flush 0 STAT get_hits 0 STAT get_misses 0 STAT delete_misses 0 STAT delete_hits 0 STAT incr_misses 0…
Read more...

centos 5.8 pptp 安装

http://poptop.sourceforge.net/dox/     http://poptop.sourceforge.net/yum/stable/packages/     http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
Read more...

centos 5.8 安装 php 5.2 mysql 5.1

方法3  IUS http://iuscommunity.org/Docs/ClientUsageGuide http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/http://wiki.iuscommunity.org/Repos 打开 http://dl.iuscommunity.org/pub/ius/stable/查找 文件 /Redhat/5/x86_64/查找最新 epel-release-5-xxx.noarch.rpmius-release-xxxxxxx.ius.el5.noarch.rpm 安装wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-xxxxx.ius.el5.noarch.rpm wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-xxxxxx.ius.el5.noarch.rpm rpm -Uvh ius-release*.rpm epel-release*.rpm 列表可以安装的包yum list | grep -w \.ius\. 安装 replace 插件$ sudo yum install yum-plugin-replace 查看 php[root@linuxbox ~]# rpm -qa | grep php 替换新版 php yum replace php --replace-with php52 安装几个插件 yum install -y php52-xml php52-dom php52-mcrypt php52-gd php52-mbstring php52-mhash 替换后查看 [root@linuxbox ~]# php -v 重启 apache[root@el5-i386 ~]# httpd -tSyntax OK [root@el5-i386 ~]# /etc/init.d/httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ] 替换 mysqlyum replace mysql --replace-with mysql51     命令列表如下   wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpmwget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpmrpm -Uvh ius-release*.rpm epel-release*.rpmyum install yum-plugin-replaceyum replace php --replace-with php52yum…
Read more...

mysql mycnf 4g centos 5.7 plesk sb panel

[mysqld]bind-address=127.0.0.1set-variable=local-infile=0datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql# Default to using old password format for compatibility with mysql 3.x# clients (those using the mysqlclient10 compatibility package).old_passwords=1
Read more...

CentOS 5.5 x64 PPTPD Server -2

Install the poptop repository rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm   Installing Unstable/Beta   # Install the poptop repository first # poptop-beta updates ppp to 2.4.5-8.1.rhel5 from 2.4.4   [root@PPTP-SRVR yum.repos.d]# yum --enablerepo=poptop-beta install pptpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.aarnet.edu.au * base: mirror.aarnet.edu.au * extras: mirror.aarnet.edu.au * updates: mirror.aarnet.edu.au poptop-beta | 2.3 kB 00:00 poptop-beta/primary_db | 7.8 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package pptpd.x86_64 0:1.3.4-2.rhel5.1 set to be updated --> Processing Dependency: ppp = 2.4.5 for package: pptpd --> Running transaction check ---> Package ppp.x86_64 0:2.4.5-8.1.rhel5 set to…
Read more...

CENTOS 5 WEBMIN

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing : [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 You should also fetch and install my GPG key with which the packages are signed, with the command : rpm --import http://www.webmin.com/jcameron-key.asc You will now be able to install with the command : yum install webmin All dependencies should be resolved automatically.
Read more...