摘要: 将博客搬至CSDN 阅读全文
posted @ 2022-06-13 16:12 风别鹤 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1、{{}} data2、""等同{{}},数据单向绑定v-bind: 简化 :3、v-if v-else4、v-for="(i, index) in array"5、v-on: 等同 @ ,method6、[] 三元运算7、已算属性,computed 8、组件,props,template 9、数 阅读全文
posted @ 2022-06-08 03:50 风别鹤 阅读(40) 评论(0) 推荐(0) 编辑
摘要: vim ~/.vimrc #设置编码 set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 #显示行号 set number #一个tab为4个空格长度 set tabstop=4 #设置自动缩进 set autoindent #高亮 syntax 阅读全文
posted @ 2022-06-03 02:12 风别鹤 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 一、自动更新刷新 http server browser-sync dist --files "**/*" 二、http-server 三、webpack-dev-server的cli使用 webpack: 5.61以上,webpack-dev-server: 4.4以上。 1、安装: npm i 阅读全文
posted @ 2021-10-31 22:20 风别鹤 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 序号网址备注 1 https://chi.jinzhao.wiki/wiki (中文版) https://en.jinzhao.wiki/wiki/Main_Page (英文版) 支持多种语言。已被封 2 https://wiwiki.kfd.me 已被封 3 https://zwiki.liuxf 阅读全文
posted @ 2021-07-09 07:16 风别鹤 阅读(118464) 评论(2) 推荐(2) 编辑
摘要: gzip是用于压缩,效果特别好,js、css等文件的压缩率一般高达70% 具体方法如下: 先安装一个依赖 npm install compression --save 然后在已有代码里(一般是app.js)找到以下代码 const app = express(); 修改为: const compre 阅读全文
posted @ 2021-02-19 15:12 风别鹤 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: 浮点数运算bug:相减、相乘时,出现一长串小数 149.7 * 100 = 14969.999999999998 3.57 - 2.33 = 1.2399999999999998 这是JavaScript浮点运算采用IEEE 754标准导致的Bug。 解决方法:采用整数来运算,再转化为浮点数。 采用 阅读全文
posted @ 2020-04-09 16:35 风别鹤 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 现在挖矿程序攻击非常多,将挖矿程序关闭后,守护进程仍然会重启。守护进程总是反复重启,进程ID总是反复跳动 #NAME=$1 NAME='mongod -f rs0/m' echo $NAME ID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "gr 阅读全文
posted @ 2020-04-08 11:22 风别鹤 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 在终端输入以下指令: git config --global credential.helper store然后再次执行pull操作,还是会提示一次输入帐号与密码。断开终端链接,重连,再次进行pull操作,直接就拉取代码了,不用再输入帐号密码了 阅读全文
posted @ 2020-04-01 22:41 风别鹤 阅读(999) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-18 13:51 风别鹤 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-14 15:27 风别鹤 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 在软件产品开发中,人是最不可靠的因素之一,也是成本最高的因素(没有之一),架构设计应避免过多依赖优秀的程序员,要多接纳中低水平的程序员。 1、玩家重要资产变化绝对值超过0.1元时,必须马上存储在高速缓存(如Redis)中,以免后端崩溃,资产丢失。 2、玩家正常退出时,Redis玩家重要资产数据马上同 阅读全文
posted @ 2020-03-11 16:39 风别鹤 阅读(332) 评论(0) 推荐(0) 编辑
摘要: * 设置 sudo 无需输入密码,如下:* [root@localhost ~]# visudo* 在“root ALL=(ALL) ALL”这一行下面,再加入一行:* 将原来的:admin ALL=(ALL) ALL* 修改为 :admin ALL=(ALL) NOPASSWD:ALL 阅读全文
posted @ 2020-02-26 08:48 风别鹤 阅读(276) 评论(0) 推荐(0) 编辑
摘要: create index index_uid_create_time on t_room_red_log(uid,create_time);create index index_uid_state_shop_id on t_player_order(uid,state,shop_id); creat 阅读全文
posted @ 2020-02-13 16:41 风别鹤 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1、显示磁盘的可用情况: df -h 2、显示文件夹大小 du -ka folder | sort -rnk 1 | head -n 10 阅读全文
posted @ 2020-01-13 20:14 风别鹤 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 一、修改redis.conf。保证下次服务器或者Redis重启仍然生效 # maxmemory <bytes> # 3.03GB # redis-cli>info # >used_memory:3254690792 maxmemory 3254857828 maxmemory-policy allk 阅读全文
posted @ 2020-01-11 10:20 风别鹤 阅读(282) 评论(0) 推荐(1) 编辑
摘要: 一、在线安装Mysql yum -y install mysql-server 下载的东西比较多 要稍微等会; 二、下载安装 1、获取mysql YUM源 进入mysql官网获取RPM包下载地址 https://dev.mysql.com/downloads/repo/yum/ 右击 复制链接地址  阅读全文
posted @ 2019-12-31 01:58 风别鹤 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 1.修改命令 git remote set-url origin [NEW_URL] 2.先删后加 git remote rm origin git remote add origin [url]3.直接修改.git/config文件 阅读全文
posted @ 2019-10-23 10:36 风别鹤 阅读(10873) 评论(0) 推荐(0) 编辑
摘要: 1、sudo systemctl start firewalld 2、./redis-server /usr/local/bin/redis.conf 3、mongod -f /etc/mongod.conf 4、sudo nginx 阅读全文
posted @ 2019-10-21 15:01 风别鹤 阅读(265) 评论(0) 推荐(0) 编辑
摘要: git + npm link 先来看一下npm install 文档。 npm 支持安装 git 仓库,支持 git , git+ssh , git+http , git+https , or git+file 几种协议,例如: 这样会安装这个仓库的最新版本,如果需要指定版本依赖可以使用 git 的 阅读全文
posted @ 2019-10-18 14:35 风别鹤 阅读(1029) 评论(0) 推荐(0) 编辑