centos 6.9 安装后的一些配置

/ 0评 / 0

yum update

yum upgrade

yum install kernel kernel-devel kernel-headers gcc perl

mount /dev/cdrom /mnt

sh ./VBoxLinuxAdditions.run

设置自动挂载

vi /etc/rc.d/rc.local

mount -t vboxsf share /mnt

yum install gd png

rpm -Uvh glibc* (升级GLIBC到2.15)

 

https://webtatic.com/

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

yum list | grep php71w

yum install php71w-cli php71w-common php71w-devel php71w-fpm php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-opcache php71w-pdo php71w-pdo_dblib php71w-pecl-igbinary php71w-pecl-igbinary-devel php71w-pecl-memcached php71w-pecl-mongodb php71w-pecl-redis php71w-pecl-xdebug php71w-xml php71w-xmlrpc

php -v

 

rpm -Uvh mysql57-community-release-el6-n.noarch.rpm

set global validate_password_policy=0;

set global validate_password_length=1;

set global validate_password_mixed_case_count=2;

ALTER USER root@localhost IDENTIFIED BY '123456';

 

chkconfig iptables off

service iptables stop

ps aux | grep "nginx: worker process" | awk '{print $1}'

网站效率:0.342秒内查询了24次数据库