常用环境配置
安装 node
cd /usr/local
wget https://nodejs.org/dist/v14.15.1/node-v14.15.1-linux-x64.tar.xz
tar xvf node-v14.15.1-linux-x64.tar.xz
mv node-v14.15.1-linux-x64 node
ln -s /usr/local/node/bin/node /usr/local/bin/node
ln -s /usr/local/node/bin/npm /usr/local/bin/npm
node -v
npm -v
php 安装 sodium
https://www.cnblogs.com/l-zl/p/15988843.html
编译安装libsodium
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-stable.tar.gz --no-check-certificate
tar -zxf libsodium-1.0.18-stable.tar.gz
cd libsodium-stable/
./configure --prefix=/usr/local/libsodium
make && make check
make install
编译安装sodium
/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
php -v
wget https://www.php.net/distributions/php-8.0.16.tar.gz
tar -zxf php-8.0.16.tar.gz
cd php-8.0.16/ext/sodium/
phpize
./configure --with-php-config=/usr/local/php8.0/bin/php-config
make
make install