In the CentOS7 IP command instead of the ifconfig command
Linux configuration network, the Mac must be and the machine is right, must not be less
Yum install nginx php55u php55u-fpm mysql56u mysql56u-server
This is the repo source for MySQL Community Community Edition
sudo yum-y install http://repo.mysql.com/mysql-community-release-el7.rpm
After installation, copy the repo from Centos7_repo in my Linux directory to CentOS.
----------------------------------------------------------------------------
sudo yum install-y http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.6.2-1.el7.ngx.x86_64.rpm
sudo yum install-y php55.x86_64 php55-php-common.x86_64 php55-php-devel.x86_64 php55-php-fpm.x86_64 php55-php-gd.x86_ php55-php-imap.x86_64 php55-php-mbstring.x86_64 php55-php-mysqlnd.x86_64 php55-php-pdo.x86_64 Php55-php-pear.noarch php55-php-pecl-jsonc.x86_64 php55-php-odbc.x86_64 php55-php-pecl-memcached.x86_64 php55-php-pecl-mongo.x86_64 php55-php-pecl-oauth.x86_64 php55-php-pecl-xdebug.x86_64 php55-php-soap.x86_64 php55-php-xml.x86_64 php55-php-pecl-redis.x86_64 php55-php.x86_64
sudo yum install-y mysql-community-server.x86_64 mysql.x86_64
sudo yum install-y php-pecl-xdebug.x86_64 php54w*--exclude=php54w-mysql
- Configuring CentOS
Yum Install vim Net-tools
sudo systemctl enable sshd
sudo systemctl disable Firewalld.service
sudo vim/etc/selinux/config
sudo systemctl enable Nginx
sudo systemctl enable PHP-FPM
sudo yum install-y lsof
Ntpdate asia.pool.ntp.org
sudo yum-y install ntpdate
sudo yum install-y yum-utils.noarch wget vsftpd OpenSSL gcc openssl-devel
sudo yum reinstall php54w--downloadonly--downloaddir=./
sudo systemctl enable vsftpd
sudo systemctl enable mysqld
sudo cat set alias ls= "ls--color=always" =>/ROOT/.BASHRC
sudo yum install unzip
sudo yum install git–y
Can view the domain name resolution
sudo yum install dig–y
You can view the system's details
sudo yum install redhat-lsb.x86_64-y
_______________________________________________________________________________________________________________ ______________________________________________________________________________
Multi-version PHP Coexistence (example: php-5.3.29):
can go to blog to see: http://blog.saymoon.com/2012/09/linuxnginx_multi_version_php/
sudo yum install–y libxml2-devel.x86_64
sudo yum install mysql-community-embedded-devel.x86_64–y
Because if we have previously installed LNMP there will definitely be autoconf, just maybe the version is different, so we need to install the autoconf-2.13 version and then place it into the environment variable.
The export setting is valid only for the current bash login session. This is present in memory.
You can write files in general file. After source it. Or put it in the/etc/profile and so on, different places have different effects.
Export php_autoconf=/usr/share/autoconf-2.13/autoconf¬
export
PHP_AUTOHEADER=
/usr/share/autoconf-2.13/autoheaders
Fix Configure:error:Cannot find Libmysqlclient under/usr.
Compiling PHP5.2.17 error on 64-bit centos5.6 system today
Checking for Mysqlsupport ... yes, shared checking for specified location of the MySQL unixsocket ... no checking for the LO Cation of libz ... no checking for MySQL unixsocket location .../var/lib/mysql/mysql.sock configure:error:Cannot FINDLIBM Ysqlclient under/usr. Note that the MySQL client library isn't bundledanymore! [Email protected] mysql]#
After checking, the problem is that the libmysqlclient is installed in the/usr/lib64/mysql/directory by default in 64-bit system.
And the/usr/lib directory does not have the corresponding file, but PHP compile, to go to the/usr/lib directory to find
Workaround:
Ln-s/usr/lib64/mysql/libmysqlclient.so.15.0.0/usr/lib/libmysqlclient.so
And that's it, right?
./configure--prefix=/opt/php-5.3.29--with-config-file-path=/opt/php-5.3.29/etc--with-mysql=/usr/lib64/mysql-- With-mysqli=/usr/bin/mysql_config--ENABLE-FPM--with-apxs2=/opt/apache/dependent/bin/apxs
Make install
_______________________________________________________________________________________________________________ _____________________________________________________________________________
To configure Apache:
./configure--prefix=/opt/apache--exec-prefix=/opt/apache/dependent--enable-example
_______________________________________________________________________________________________________________ _____________________________________________________________________________
Under Linux often sudo ls-al does not colorize, that is because Sudo does not automatically use the current user's BASHRC configuration
We need
sudo cat alias ls= ' ls--color=always ' =>~/.BASHRC
sudo cat alias sudo= ' sudo ' =>~/.BASHRC
source./.BASHRC
Extended Text:
Http://blog.chinaunix.net/uid-10347480-id-3267667.html
http://www.shellperson.net/using-sudo-with-an-alias/
SOURCE Command usage:
SOURCE FileName
Function: Reads and executes the commands in the filename under the current bash environment.
Note: This command usually uses the command "." To replace.
such as: source. BASH_RC and. The. BASH_RC is equivalent.
If you need to install the openssl=>http://www.cnblogs.com/xiangxiaodong/archive/2013/07/30/3225718.html to finish the above and then install the best, because some dependent packages, Maybe it's all loaded up.
Architecture CentOS Summary-Some of the records you've been doing for a while, take a look.