- 博客(108)
- 收藏
- 关注
转载 阿里云云数据库RDS版购买和配置
1.购买Mysql 5.7通用型,2核CPU,4G内存,50G硬盘2.配置转载于:https://www.cnblogs.com/sunbey/p/11065197.html
2019-06-21 16:07:00
719
转载 阿里云ECS服务器购买和配置
一、购买2核CPU,4G内存,2M带宽,centos 7.6 64位,专有网络二、配置1 选择实例-管理-更多-重置实例密码2 远程连接-输入登录密码-输入centos账号 root-密码(实例密码)3 用本地item2连接 3.1 将本地密钥拷贝到远程主机上ssh-copy-id root@100.001.111.222 (ssh-keygen -...
2019-06-20 22:34:00
189
转载 centos安装mysql
1.下载安装包wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm2.安装软件源sudo rpm -Uvh platform-and-version-specific-package-name.rpmplatform-and-version-specific-packa...
2019-03-25 13:54:00
186
转载 overflow不隐藏圆角部分
1.overflow属性不隐藏绝对定位到子元素,如果父元素不加相对或绝对定位2.父元素应用圆角属性border-radius,且子元素应用transform属性,不隐藏圆角部分解决:父元素插入如下cssposition: relative;z-index: 1;transform:translate3d(0,0,0);转载于:https://w...
2019-03-15 10:02:00
466
转载 小程序开发框架集锦
mpvue(美团)Chameleon(cml 滴滴)wepy(腾讯)uni-app(Dcloud H5+ Hbuilder)taro(京东凹凸实验室)转载于:https://www.cnblogs.com/sunbey/p/10481023.html
2019-03-06 04:59:00
131
转载 iterm bash转zsh,oh-my-zsh使用
1.查看当前系统使用点shellecho $SHELL2.查看是否安装了zshcat /etc/shells3.安装zsh,已安装的忽略yum -y install zsh4.切换shell为zshchsh -s /bin/zsh5.重启服务器reboot6.安装oh-my-zshwget https...
2019-03-04 10:25:00
272
转载 iconfont字体图标使用
1.css引入@font-face font-family 'iconfont' src url('//at.alicdn.com/t/font_1062116_jdtc88lagk.eot') src url('//at.alicdn.com/t/font_1062116_jdtc88lagk.eot?#iefix') format('embedded-ope...
2019-02-27 13:28:00
431
转载 vscode使用及插件
插件1.indent-rainbow2.path intellisense3.path autocomplete4.manta's stylus supremacy "stylusSupremacy.insertColons": false, "stylusSupremacy.insertSemicolons": false, "styl...
2019-02-27 09:52:00
141
转载 finder中关联iterm
1.打开automator2.新建服务:2.1顶上的第一个下拉框选择 files or folders, 第二个下拉框选择 Finder.app2.2左侧搜索Run Shell Script,双击2.3shell选择bin/zsh,pass input选择as argument2.4输入如下代码if [[ -d $1 ]]; then open -a...
2019-02-26 12:23:00
135
转载 node实现跨域get,post
// Access-Control-Allow-Originapp.all('*', function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "X-Requested-With,Co...
2018-12-07 10:11:00
114
转载 常用js正则表达式大全
一、校验数字的js正则表达式 1 数字:^[0-9]*$ 2 n位的数字:^\d{n}$ 3 至少n位的数字:^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$ 7 带1-2位小数的正数或负数:^(\-)?\d+(\.\d{1...
2018-12-03 10:49:00
110
转载 sass scss with sublime
1.打开sublime,安装包 Sass, Sass Build, SublimeOnSaveBuild2.若未安装sass,打开iterm,gem(ruby工具)安装sasssudo gem install sass3.配置编译目录打开sublimetools -> Build System -> New Build System,粘...
2018-06-23 16:44:00
149
转载 jsonp解决跨域问题
一、jsonp方案1.前端发起请求方 1.1 定义回调函数function handleResponse(response){ console.log(response);} 1.2 动态插入scriptvar script = document.createElement("script");script.src = "https:...
2018-06-12 16:53:00
81
转载 mac 终端添加ll命令
1.终端进入用户目录cd2.新建.bashrc文件,并写入代码alias ll=’ls -l’3.执行生效source ~/.bashrc转载于:https://www.cnblogs.com/sunbey/p/9069282.html...
2018-05-21 20:55:00
443
转载 终端常见命令
nginx mac 下启动与重启sudo nginxsudo nginx -s reload转载于:https://www.cnblogs.com/sunbey/p/9066652.html
2018-05-21 12:42:00
113
转载 阿里云域名免费转ssl,实现https访问
1.登录阿里云,进管理控制台 - 域名与网站 - 域名2.选择对应的域名 - ssl证书 - 单域名免费证书3.填写www或者对应的子域名,确定 - 等待审核通过4.进入进管理控制台 -安全(云盾) - CA证书服务 - 下载对应证书5.ssh连接远程服务器,进入nginx安装目录(/etc/nginx/),新建cert目录6.将下载下来的证书文件放到cert目录,...
2018-05-10 15:46:00
286
转载 开发过程中遇到的编码问题
首先看下各种编码:ISO-8859-1GBKGB2312ANSIASCIIUnicodeUTF-8base64转载于:https://www.cnblogs.com/sunbey/p/9016829.html
2018-05-09 21:38:00
168
转载 linux - centos 阿里云自动断开连接
1.进入ssh目录cd /etc/ssh2.修改配置文件sshd_configClientAliveInterval 30ClientAliveCountMax 864003.重启ssh服务service sshd restart转载于:https://www.cnblogs.com/sunbey/p/8953502.html...
2018-04-26 16:49:00
342
转载 github发布静态网站
1、在本地新建一个文件夹。然后在文件夹中用git初始化文件夹 git init2、然后,创建一个没有父节点的分支gh-pages。因为github规定,只有该分支中的页面,才会生成网页文件。 git checkout –orphan gh-pages 之后把代码拷贝进文件夹或者新建文件写入代码3、把代码添加进本地仓库然后提交 git add . git commit -m “注释...
2018-04-11 11:26:00
144
转载 mac下卸载xcode后,无法使用git命令
出现错误xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun解决xcode-select --install...
2018-04-11 11:13:00
1195
转载 css文本超出部分用省略号显示
一、div内显示一行,超出部分用省略号显示white-space: nowrap;overflow: hidden;text-overflow: ellipsis;二、div内显示两行或三行,超出部分用省略号显示overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-w...
2018-04-02 15:04:00
113
转载 原生js仿vue-mue
<!DOCTYPE html><html><head> <title>vue-mue</title></head><body><div id="app"> <input type="text" v-model="text"> {{te...
2018-03-30 10:34:00
177
转载 react axios方式获取api数据接口
import React, { Component } from 'react';import Record from './Record';import axios from 'axios';class Records extends Component { constructor() { super(); this.state =...
2018-03-14 16:10:00
308
转载 react jquery方式获取api数据接口
import React, { Component } from 'react';import Record from './Record';import { getJSON } from 'jquery';class Records extends Component { constructor() { super(); this....
2018-03-14 16:05:00
171
转载 星云
es5es6es7vueweexreactreact nativeangulargit小程序webpackgulpgruntnode.netc#phpjavaswiftoclinux1.putty/xshell2.nginx转载于:https://www.cnblog...
2018-03-11 16:52:00
187
转载 linux下nginx实现负载均衡
1.修改nginx配置文件cd /usr/local/nginx/conf...http { upstream myproject { server 192.168.1.7 weight 2; server 192.168.1.8; } server { listen 8080; ...
2018-03-08 16:22:00
104
转载 linux - centos下配置虚拟主机
1.root账号进入终端,ifconfig查看当前ip地址信息和网卡2.重新配置eth0网卡ifconfig eth0 192.168.1.9 netmask 255.255.255.03.开始配置第一个虚拟主机(broadcast必须与eth0的一致)ifconfig eth0:1 192.168.1.7 broadcast 192.168.1.255 ne...
2018-03-08 15:48:00
119
转载 linux - centos下安装nginx
1.从nginx官网下载nginx安装包(.tar.gz)2.进入下载目录,解压安装包tar zxvf xxxx.tar.gz3.进入解压目录,配置./configure4.如提示需要PCRE库,则切换root用户安装gcc gcc-c++sucd /yum -y install gcc gcc-c++ autoconf autom...
2018-03-08 14:18:00
98
转载 后端服务器知识
1.服务器种类及特点首先说IIS,IIS服务器只能在Windows上运行,Windows服务器性能不如Linux—类服务器。其次说Tomcat, Tomcat服务器面向的是Java语言,是一种重量级的服务器,而Nginx是轻量级服务器,Tomcat与Nginx不具备可比性。最后,我们讲一下Apache, Apache优点非常多,比如稳定、开源、跨平台等等,但是Apache不支持高并发...
2018-03-07 15:22:00
670
转载 nodejs fs 流的方式读写文件
var fs = require('fs')var myReadStream = fs.createReadStream(__dirname + '/book.txt')var myWriteStream = fs.createWriteStream(__dirname + '/copy.txt')myReadStream.setEncoding('utf8')...
2018-02-28 15:50:00
327
转载 nodejs EventEmitter 使用基础
var events = require('events')var util = require('util')var Person = function(name, age){ this.name = name, this.age = age}util.inherits(Person, events.EventEmitter)va...
2018-02-28 14:52:00
262
转载 前后端学习日常
2018-2-271.前端打包工具webpack的安装与使用(当前版本为4.0.1),应用webpack打包前端资源来解决前端项目的复杂化,将分模块开发的功能进行打包2.Animate.css - 预设css3动画库,用于前端交互展示动画特效3.HTML-CSS-JS Prettify - sublime代码格式化(美化)插件2018-2-281.nodejs...
2018-02-28 10:44:00
117
转载 chrome浏览器地址栏输入,变成可编辑文本模式
chrome浏览器地址栏输入以下代码:data:text/html,<html contenteditable>或者在浏览器开发者控制台console处输入document.body.contentEditable = truecss placeholder 文字颜色input::-webkit-input-pla...
2018-01-28 19:53:00
1606
转载 linux sshfs远程挂载文件到本地目录
1.安装homebrew(已安装的跳过)ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"2.首先安装依赖brew install Caskroom/cask/osxfuse3.安装sshfsbrew install ss...
2017-12-30 16:06:00
167
转载 bash相关命令
curlwgetyumnpmhomebrew转载于:https://www.cnblogs.com/sunbey/p/8111131.html
2017-12-25 20:44:00
98
转载 mac下安装homebrew,yum,wget
下载安装homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"下载安装wgetbrew install wget转载于:https://www.cnblogs.com/sunbey/p/810975...
2017-12-25 15:52:00
2762
转载 linux安装与使用
u盘安装方式:1.下载linux系统iso镜像文件2.使用ultraiso载入iso,启动-写入硬盘映像3.电脑重启-u盘启动方式4.install centos 7 界面时,tab键,修改参数查看u盘名vmlinuz initrd=initrd.img linux dd quiet5.重新u盘启动进入install centos 7 界面,修改参数...
2017-12-24 14:04:00
125
转载 node退出已开启的服务器进程
打开终端输入ps -ax | grep node //找出所有node应用sudo kill :pid //找到你要杀死node进程的pid转载于:https://www.cnblogs.com/sunbey/p/7701389.html
2017-10-20 20:30:00
348
转载 NodeJs创建应用基本流程
1.创建根目录2.初始化package.jsonnpm init -y3.创建入口文件app.jsvar express = require('express')var path = require('path')var app = express()app.get('/yourcat/', function(req,res){...
2017-10-20 20:16:00
248
转载 ecs云主机centos开发nodejs微信公众号笔记
1.登录云主机ssh-keygen -t rsassh-copy-id root@100.001.111.222ssh 'root@100.001.111.222'2.安装nginxyum install nginx3.开启nginx服务,并检查是否开启成功service nginx startservice nginx restart...
2017-09-05 12:04:00
115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人