标签: Linux

  • FreeBSD优点以及技巧

    FreeBSD添加自定义动态库(.so)路径:

    路径在 /usr/local/libdata/ldconfig  目录下,自己创建一个文件,添加库路径即可,然后运行 service ldconfig restart

    FreeBSD新系统如何恢复软件安装:

    拷贝备份的 /usr/local 目录以及自己安装的软件目录比如 /opt 目录到新系统上即可,然后恢复自己修改的非/usr/local以及/opt目录的其他文件

     

  • Debian/Ubuntu PHP编译(根据版本不定期更新)

    说明:

            缺少的包请自行安装,这里只描述一些可能的问题和编译参数,一些支持的路径请根据自己的情况修改,比如–prefix,mysql以及postgresql的PDO路径

    PHP7.3编译:

    ./configure  --prefix=/opt/php7.3 --with-pdo-mysql=/opt/mysql8.0  --with-pdo-pgsql=/opt/pg12 --with-curl --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-xmlrpc --with-mysqli  --with-pcre-jit  --with-pdo-mysql --with-pdo-sqlite --with-pear --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath  --enable-inline-optimization --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip --with-ldap --with-openssl --enable-gd-jis-conv
    

    PHP7.4编译:

    ./configure  --prefix=/opt/php7.4 --with-pdo-mysql=/opt/mysql8.0  --with-pdo-pgsql=/opt/pg12 --with-curl --enable-gd --with-gettext --with-iconv-dir --with-kerberos --with-xmlrpc --with-mysqli  --with-pcre-jit  --with-pdo-mysql --with-pdo-sqlite --with-pear --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath  --enable-inline-optimization --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --with-zip --with-ldap --with-openssl --enable-gd-jis-conv

    PHP8.0编译:

    ./configure  --prefix=/opt/php8.0 --with-pdo-mysql=/opt/mysql8.0  --with-pdo-pgsql=/opt/pg13 --with-curl --enable-gd --with-gettext  --with-kerberos  --with-mysqli  --with-pcre-jit  --with-pdo-mysql --with-pdo-sqlite --with-pear  --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath  --enable-gd-jis-conv --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --with-zip --with-ldap --with-openssl --enable-gd-jis-conv

     

    友情提醒:最后别忘记了拷贝源代码的php.ini文件😊