ubuntu:
wget https://nodejs.org/dist/v18.9.1/node-v18.9.1-linux-x64.tar.gz
tar -zxvf node-v18.9.1-linux-x64.tar.gz
ln -s /root/node-v18.9.1-linux-x64/bin/node /usr/local/bin/node
ln -s /root/node-v18.9.1-linux-x64/bin/npm /usr/local/bin/npm
export NODE_HOME=/root/node-v18.9.1-linux-x64/bin/
export PATH=$PATH:$NODE_HOME:/usr/local/bin
sudo npm i yarn -g
yarn –vesion
npm list -g
git clone https://github.com/Lissy93/web-check.git
tree -L 2./web-check
cd web-check/
yarn intall
yarn start
如error Command failed with exit code 1
rm -rf node_modules
yarn cache clean
yarn
yarn start
![图片[1]-部署web-check网站分析工具-晴天生活分享日志](https://xbfxw.top/wp-content/uploads/2024/04/屏幕截图-2024-04-07-093624.png)
centos:
node -v
node: /lib64/libm.so.6: version `GLIBC_2.27′ not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.25′ not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28′ not found (required by node)
node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9′ not found (required by node)
node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20′ not found (required by node)
node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21′ not found (required by node)
[root@lavm-x04s4kv7q3 bin]# strings /lib64/libc.so.6 | grep GLIBC
新版的node v18开始 都需要GLIBC_2.27支持,可是目前系统内却没有那么高的版本
wget http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
tar -zxvf glibc-2.28.tar.gz
cd glibc-2.28
mkdir build && cd build
../configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin
configure: error:
*** These critical programs are missing or too old: make compiler
*** Check the INSTALL file for required versions.
升级GCC(默认为4 升级为8)
yum install -y centos-release-scl
![图片[2]-部署web-check网站分析工具-晴天生活分享日志](https://xbfxw.top/wp-content/uploads/2024/04/屏幕截图-2024-04-06-220023.png)
yum install -y devtoolset-8-gcc*
mv /usr/bin/gcc /usr/bin/gcc-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/gcc /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/g++ /usr/bin/g++
升级 make(默认为3 升级为4)
wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz
tar -xzvf make-4.3.tar.gz && cd make-4.3/
./configure –prefix=/usr/local/make
make && make install
cd /usr/bin/ && mv make make.bak
ln -sv /usr/local/make/bin/make /usr/bin/make
cd /root/glibc-2.28/build
../configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin
访问ip:3000
![图片[3]-部署web-check网站分析工具-晴天生活分享日志](https://xbfxw.top/wp-content/uploads/2024/04/QQ浏览器截图20240407092217.png)
感谢您的来访,获取更多精彩文章请收藏本站。
1. 资源都是经过站长或作者收集测试修改后发布分享。转载请在文内以超链形式注明出处,谢谢合作!
2. 本站除原创内容,其余所有内容均收集自互联网,仅限用于学习和研究目的,本站不对其内容的合法性承担任何责任。如有版权内容,请通知我们或作者删除,其版权均归原作者所有,本站虽力求保存原有版权信息,但因众多资源经多次转载,已无法确定其真实来源,或已将原有信息丢失,所以敬请原作者谅解!
3. 本站用户所发布的一切资源内容不代表本站立场,并不代表本站赞同其观点和对其真实性负责,若您对本站所载资源作品版权归属存有异议,请留言附说明联系邮箱,我们将在第一时间予以处理 ,同时向您表示歉意!为尊重作者版权,请购买原版作品,支持您喜欢的作者,谢谢!
4. 本站一律禁止以任何方式发布或转载任何违法的相关信息,访客如有发现请立即向站长举报;本站资源文件大多存储在云盘,如发现链接或图片失效,请联系作者或站长及时更新。


测试-晴天生活分享日志">
彩虹易支付使用教程-晴天生活分享日志">



暂无评论内容