Version number:CentOS release 5.7
1) View the system version number
Cat/etc/readhat-release
2) Install the software
wget Resource Links
Make
Make install
Online installation: sudo yum install php5
3) Vim mode
Set nu//Display line number
4) Compiling the PHP command line
/usr/local/php/bin/php test.php
5) Add /usr/local/php/bin/php to path to compile PHP files using PHP test.php
6) Unzip the zip file unzip Test.zip
7) Phpredis Extension
Download: http://dl.dbank.com/c0u193fjey#
securecrt upload Download file: http://blog.csdn.net/lioncode/article/details/7921525
Extended Installation Instructions:
My PHP is compiled and installed so run
/usr/local/php/bin/phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install
Vi/etc/php.d/redis.ini
Extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/redis.so
This step depends on your own PHP compilation parameters--with-config-file-scan-dir=/etc/php.d this to decide where to add redis.so.
The most important step in Phpredis extended installation:
sudo vi/usr/local/php/lib/php.ini
Then look for:/extension
When you find a location such as the following. Join the extension=redis.so
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613"
extension=memcache.so
extension=memcached.so
extension=pdo_mysql.so
extension=censoring.so
extension=curl.so
extension=zlib.so
extension=mysql.so
extension=gd.so
extension=triefind.so
extension=kwordfilter.so
extension=xhprof.so
extension=pcntl.so
extension=redis.so
8) Cut the file
MV Redis-2.8.17.tar.gz./software/
9) Delete Files
RM Test.tar
securecrt upload Download file: http://blog.csdn.net/lioncode/article/details/7921525
Suppose the download fails to resolve the method:
Execute command RZ. That is to receive the file, SecureCRT will pop up the file selection dialog box. Close the dialog box after selecting the file, and the file will be uploaded to the current folder
Note: Using RZ alone will have two problems: Upload interrupt, upload file changes (MD5 different), the solution is to upload the rz-be, and remove the pop-up dialog box "Upload files as ASCII" before the check.
-b binary uploads the download in binary mode, does not interpret the character as ASCII
-E force escape all control characters, for example Ctrl+x,del
11) View disk space
Df-hl
12) switch Root permissions
Sudo-s
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
"Linux" CentOS system