标签:
在CentOS7 ip命令代替ifconfig命令
Linux配置网络,mac一定要和本机是对的,一定不能少
yum install nginx php55u php55u-fpm mysql56u mysql56u-server
这是mysql community社区版的repo源
sudo yum -y install http://repo.mysql.com/mysql-community-release-el7.rpm
都安装完毕后,复制我Linux目录下的CentOS7_Repo里的repo到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_64 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
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
//可以查看域名解析
sudo yum install dig –y
//可以查看系统的详细信息
sudo yum install redhat-lsb.x86_64 -y
_____________________________________________________________________________________________________________________________________________________________________________________________
多版本php共存(示例: php-5.3.29):
可以去博客看: 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
因为如果我们之前安装过lnmp肯定会有autoconf,只是可能版本不同,所以我们需要安装autoconf-2.13的版本,然后放置到环境变量.
export设置只对当前的bash登录session有效。这是存在内存里面的。
你可以写入文件一般的文件。之后source它。或者放到/etc/profile 等等的位置里,不同的地方效果不同。
export PHP_AUTOCONF=/usr/share/autoconf-2.13/autoconf¬
export
PHP_AUTOHEADER=
/usr/share/autoconf-2.13/autoheaders
解决configure: error: Cannot find libmysqlclient under /usr.
今天在64位centos5.6系统上编译PHP5.2.17报错
checking for MySQL support... yes, shared checking for specified location of the MySQL UNIX socket... no checking for the location of libz... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! [root@zjlca mysql]#
经查,问题是64位系统中 libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下
而/usr/lib 目录下没有相应文件,但是php编译时,要去 /usr/lib目录下查找
解决方法:
ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
然后直接就这样啦:
./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
____________________________________________________________________________________________________________________________________________________________________________________________
配置apache的:
./configure --prefix=/opt/apache --exec-prefix=/opt/apache/dependent --enable-example
____________________________________________________________________________________________________________________________________________________________________________________________
在linux下经常sudo ls -al不着色,那是因为sudo没去自动使用当前用户的bashrc配置
我们需要
sudo cat alias ls=‘ls --color=always‘=>~/.bashrc
sudo cat alias sudo=‘sudo ‘=>~/.bashrc
source ./.bashrc
扩展文:
http://blog.chinaunix.net/uid-10347480-id-3267667.html
http://www.shellperson.net/using-sudo-with-an-alias/
source命令用法:
source FileName
作用:在当前bash环境下读取并执行FileName中的命令。
注:该命令通常用命令“.”来替代。
如:source .bash_rc 与 . .bash_rc 是等效的。
如果需要安装openssl=>http://www.cnblogs.com/xiangxiaodong/archive/2013/07/30/3225718.html 把上面整完再装最好,因为一些依赖的包,可能上面都装好了
标签:
原文地址:http://www.cnblogs.com/rootarvin/p/4711522.html