分类: 随手记

编译安装PHP常用参数

./configure --prefix=/home/iuu/Software/php/php83 --with-config-file-path=/home/iuu/Software/php/php83/etc  --with-curl --with-freetype --enable-gd --with-jpeg  --with-gettext  --with-kerberos  --with-mysqli --with-openssl   --with-external-pcre   --with-pdo-mysql --with-pear   --with-xsl --with-zlib --enable-fpm --enable-bcmath  --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --with-zip  --enable-ftp --enable-session --enable-xml --enable-cli --enable-static --enable-mysqlnd --enable-intl --enable-pdo  --with-iconv --with-bz2 --with-ldap-sasl --with-mhash --with-libxml  --with-pdo-sqlite

make && make install

cp /home/iuu/Software/php/php83/php-8.3.10/php.ini-production /home/iuu/Software/php/php83/etc/php.ini
cp /home/iuu/Software/php/php83/php-8.3.10/sapi/fpm/php-fpm /home/iuu/Software/php/php83/etc/php-fpm
cp /home/iuu/Software/php/php83/etc/php-fpm.conf.default       /home/iuu/Software/php/php83/etc/php-fpm.conf
cp /home/iuu/Software/php/php83/etc/php-fpm.d/www.conf.default /home/iuu/Software/php/php83/etc/php-fpm.d/www.conf

NAS迅雷自建Docker

docker image pull cnk3x/xunlei:latest
docker run -d \
--name=xunlei \
--hostname=xunlei-hostname \
--network=host \
--restart=unless-stopped \
--privileged \
-e XL_DASHBOARD_PORT=2345 \
-v /home/iuu/Software/Docker/xunlei/data:/xunlei/data \
-v /mnts/Downloads:/xunlei/downloads \
cnk3x/xunlei:latest

docker run -d \
--name=docker-xunlei \
--restart=unless-stopped \
-p 2345:2345 \
--privileged \
-v /home/iuu/Software/Docker/xunlei/data:/xunlei/data \
-v /home/iuu/Downloads/xunlei:/xunlei/downloads \
cnk3x/xunlei:latest
1 2 3 4 5