Research on "Linux" CentOS system

Source: Internet
Author: User
Tags control characters php compiler zts

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.