编辑
2021-10-07
实用笔记
00
pip freeze > requirements.txt
编辑
2021-09-29
DevOps
00

起项目的时候,需要编译 node-gpy ,但是在 cent os 7 下报错:

g++: 错误:unrecognized command line option ‘-std=c++14’

这是因为 gcc 版本不对,需要升级。步骤如下:

shell
yum install centos-release-scl -y yum install devtoolset-10-gcc-c++ -y yum install devtoolset-10-toolchain -y scl enable devtoolset-10 zsh scl enable devtoolset-10 bash echo "#!/bin/zsh" > /etc/init.d/gcc echo "source /opt/rh/devtoolset-10/enable" >> /etc/init.d/gcc chmod +x /etc/init.d/gcc

然后再编译就对了

编辑
2021-09-29
DevOps
00

linuxvscode 报错,System limit for numer of file watchers reached,解决方法:

shell
echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf && sysctl -p
编辑
2021-09-10
DevOps
00

cent os 7 默认的 git 是 1.9 的,很不优雅,还是换成 2.x 的比较好

编辑
2021-09-10
前端技术
00
css
.nav_item::after { content: ""; width: 0; height: 1px; background: #000; position: absolute; top: 100%; left: 50%; transition: all 0.5s; } .nav_item:hover::after { left: 0; width: 100%; }