Version:CentOS release 5.7
1) View System version
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 execute
/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 compiler 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 the following location, add 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
If the download fails the workaround:
Run the command RZ, that is, to receive the file, SecureCRT will pop up the file selection dialog box, select the file and close the dialog box, the file will be uploaded to the current directory
Note: Using RZ alone will have two problems: Upload interrupt, upload file changes (MD5 different), the solution is to upload is rz-be, and remove the popup 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, such as Ctrl+x,del, etc.
11) View disk space
Df-hl
Research on "Linux" CentOS system