镜像站https://mirrors.ustc.edu.cn/help/centos.htmlhttps://mirror.tuna.tsinghua.edu.cn/help/centos/# CentOS 7 TsingHua sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://mirror.centos.org/centos|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos|g' \ -i.bak \ /etc/yum.repos.d/CentOS-*.repo # CentOS 7 USTC sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://mirror.centos.org/centos|baseurl=https://mirrors.ustc.edu.cn/centos|g' \ -i.bak \
<?php class Container { protected $binds; protected $instances; public function bind($abstract, $concrete) { if($concrete instanceof Closure) { $this->binds[$abstract] = $concrete; } else { $this->instances[$abstract] = $concrete; } } public function make($abstract, $parameters=[]){ if (isset($this->instances[$abstract])){ return $this->instances[$abstract]; } ar
CentOS libiconv安装检查是否存在whereis libiconv.so.2 find / -name libiconv.so.2 下载wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.1.tar.gz tar -zxvf libiconv-1.16.1.tar.gz cd libiconv-1.16.1 编译并安装./configure --prefix=/usr/local make && make install ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2 ldconfig PHP下载并解压wget https://www.php.net/distributions/php-7.4.33.tar.gz tar zxvf php-7.4.33.tar.gz cd php-7.4.33 编译./configure --prefix=/usr/local/php7 \ --with-config-file-path=/usr/l
昼夜思想