https://avatars.githubusercontent.com/u/6274534

关于 windows 下 node_modules ode-sass endor 的报错解决方法

项目 git clone 下来之后,运行 npminstall, npm start 报错代码如下: 1 2 ERROR in ENOENT: no such file or directory, scandir 'E:\React\helloworld\node_modules\node-sass\vendor' @ ./src/layouts/CoreLayout/CoreLayout.scss 4:14-284 13:2-17:4 14:20-290 其原因是 windows 下的 node-sass 编译没通过,需要下载微软的编译环境及工具,但也有

crontab 管理指定用户的定时任务

创建用户定时任务文件 1 2 3 touch /var/spool/cron/target_user crontab -u target_user /var/spool/cron/target_user 编辑用户的定时任务 1 crontab -u target_uesr -e 一些定时任务配置样例 1 2 */1 * * * * bash /home/script/target_script.sh // 每分钟执行 0 1 * * * bash /home/script/target_script.sh // 每天一点

MySQL 主从配置

mysql 主从复制指两个服务器之间数据库的同步,当主服务器的数据进行了变更,从服务器也会自动更新,其过程是通过 bin-log 日志实现的,本质是 binlog 日志的传输。 mysql 主

Raspberry PI 禁用交换分区

在树莓派上创建内存盘,将频繁读写的缓存等小文件放到内存,减少对SD卡的寿命消耗。 1 2 mkdir /ram mount -t tmpfs -o size=10m,mode=0777 tmpfs /ram 禁用 swap 交换分区 1 2 3 vim /etc/dphys-swapfile # 修改 CONF_SWAPSIZE=0