2020年5月15日

mysql 8.0 备份与还原

摘要: mysqldump -h 主机名 -P 端口 -u 用户名 -p 数据库名 > 备份文件.sql mysql> source 备份文件.sql 阅读全文

posted @ 2020-05-15 09:54 刘顺利 阅读(2641) 评论(0) 推荐(0)

2020年5月14日

Ubuntu安装mysql未提示输入密码,安装后修改mysql密码默认密码

摘要: 使用mysql -uroot -p 命令连接mysql时,报错 ERROR 1045 (28000): Access denied for user 'root'@'localhost' 此时修改root的默认密码即可 1.进入到etc/mysql 目录下,查看debian.cnf文件 2.找到用户 阅读全文

posted @ 2020-05-14 09:21 刘顺利 阅读(524) 评论(0) 推荐(0)

2020年5月13日

unbunt 常用命令

摘要: 一、常用的文件、目录操作命令 这是我们使用得最多的命令了,Linux最基础的命令! 可用 pwd命令查看用户的当前目录 可用 cd 命令来切换目录 .表示当前目录 .. 表示当前目录的上一级目录(父目录) -表示用 cd 命令切换目录前所在的目录 ~ 表示用户主目录的绝对路径名 绝对路径: 以斜线( 阅读全文

posted @ 2020-05-13 18:45 刘顺利 阅读(340) 评论(0) 推荐(0)

Linux rpm命令详解

摘要: rpm命令是RPM软件包的管理工具。rpm原本是Red Hat Linux发行版专门用来管理Linux各项套件的程序,由于它遵循GPL规则且功能强大方便,因而广受欢迎。逐渐受到其他发行版的采用。RPM套件管理方式的出现,让Linux易于安装,升级,间接提升了Linux的适用度。 rpm常见命令参数 阅读全文

posted @ 2020-05-13 17:05 刘顺利 阅读(269) 评论(0) 推荐(0)

2020年5月12日

Linux 中 mysql使用

摘要: MySQL安装 1、查看系统环境准备相应的安装包 lsl@lsl-Mi-Laptop-Pro-15:~$ uname -aLinux lsl-Mi-Laptop-Pro-15 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x 阅读全文

posted @ 2020-05-12 02:58 刘顺利 阅读(175) 评论(0) 推荐(0)

Linux 命令集锦

摘要: touch test.sh 创建sh文件 gedit /etc/init.d/rc.local chmod +x rc.local sh rc.local 阅读全文

posted @ 2020-05-12 00:50 刘顺利 阅读(101) 评论(0) 推荐(0)

2020年4月1日

ASP.NET OAuth 2.0 新手上路

摘要: https://www.cnblogs.com/xiaobai123/p/9348074.html 阅读全文

posted @ 2020-04-01 19:43 刘顺利 阅读(96) 评论(0) 推荐(0)

2020年3月4日

shell 获取 文件详细信息

摘要: 首先引用COM组件 Microsoft Shell Controls And Automation 这里需要注意 DLL的属性Embed Interop Type 设为False 否则会引起互操作类型异常 代码如下 ShellClass sh = new ShellClass(); Folder d 阅读全文

posted @ 2020-03-04 15:43 刘顺利 阅读(921) 评论(0) 推荐(0)

2019年10月10日

visual studio使用IP进行局域网调试

摘要: 修改applicationhost.config,vs版本不同位置不同 <binding protocol="http" bindingInformation="192.168.1.4:55084:*" /> 修改后使用管理员启动vs即可。注意防火墙问题。 vs2010 阅读全文

posted @ 2019-10-10 21:26 刘顺利 阅读(701) 评论(0) 推荐(0)

2019年9月27日

解决引用外部图片不能显示的问题

摘要: <meta name="referrer" content="no-referrer"> 阅读全文

posted @ 2019-09-27 10:09 刘顺利 阅读(506) 评论(0) 推荐(0)

2019年9月10日

ffmpeg 推流

摘要: 输入下面的语句即可列出电脑的设备 ffmpeg -list_devices true -f dshow -i dummy cmd中输入下面语句即可查询摄像头信息 ffmpeg -list_options true -f dshow -i video="USB2.0 PC CAMERA" 推流 ffm 阅读全文

posted @ 2019-09-10 16:08 刘顺利 阅读(227) 评论(0) 推荐(0)

2019年9月2日

图片显示效果

摘要: body {background-image: url(b10.png);background-repeat: no-repeat;background-position: center;background-size: cover;height: 100vh;margin: 0px;padding 阅读全文

posted @ 2019-09-02 10:09 刘顺利 阅读(173) 评论(0) 推荐(0)

2019年8月21日

white-space

摘要: normal: 正常无变化(默认处理方式.文本自动处理换行.假如抵达容器边界内容会转到下一行) normal: 正常无变化(默认处理方式.文本自动处理换行.假如抵达容器边界内容会转到下一行) pre: 保持HTML源代码的空格与换行,等同与pre标签 nowrap: 强制文本在一行,除非遇到br换行 阅读全文

posted @ 2019-08-21 19:05 刘顺利 阅读(147) 评论(0) 推荐(0)

2019年8月19日

JavaScript动态加载CSS和JS文件

摘要: var dynamicLoading = { css: function(path){ if(!path || path.length 0){ throw new Error('argument "path" is required !'); } var head = document.getEle 阅读全文

posted @ 2019-08-19 14:51 刘顺利 阅读(618) 评论(0) 推荐(0)

2019年8月6日

循环对象

摘要: Object.keys(obj).forEach(function(key) { console.log(key, obj[key]); }); 阅读全文

posted @ 2019-08-06 17:32 刘顺利 阅读(87) 评论(0) 推荐(0)

2019年7月16日

javascript callback

摘要: var sortJson = function(obj, callback) { var endValue, item, key, keyArray, keyArray2, o, _i, _len; endValue = {}; keyArray = []; keyArray2 = []; for 阅读全文

posted @ 2019-07-16 13:13 刘顺利 阅读(381) 评论(0) 推荐(0)

2019年4月19日

字体

摘要: @font-face { font-family: 'yh'; src: url('../css/kt.ttf') format('truetype')/* Safari, Android, iOS */}html{ font-family: 'yh';} 阅读全文

posted @ 2019-04-19 16:09 刘顺利 阅读(130) 评论(0) 推荐(0)

2019年3月10日

当前li的同级且不包含当前li

摘要: $(this).parent("li").siblings().removeClass('active'); $(this).parent("li").addClass("active"); 阅读全文

posted @ 2019-03-10 09:12 刘顺利 阅读(208) 评论(0) 推荐(0)

2019年2月17日

溢出用省略号显示

摘要: overflow:hidden; //超出的文本隐藏text-overflow:ellipsis; //溢出用省略号显示white-space:nowrap; //溢出不换行 //上面是一行内容的时候,当有两行的内容时候 overflow: hidden;text-overflow: ellipsi 阅读全文

posted @ 2019-02-17 23:20 刘顺利 阅读(95) 评论(0) 推荐(0)

2019年2月1日

.NET Core中使用Cookie步骤

摘要: 1.Nuget Microsoft.AspNetCore.Authentication.Cookies 2.using Microsoft.AspNetCore.Authentication.Cookies 3. 阅读全文

posted @ 2019-02-01 17:50 刘顺利 阅读(275) 评论(0) 推荐(0)

.NET Core中使用Session步骤

摘要: .NET Core中使用Session步骤如下: 1、安装Microsoft.AspNetCore.Session NuGet包 2、修改Startup.cs 添加相关服务,services.AddSession()和app.UseSession() 3、Session 用法 引用 Session写 阅读全文

posted @ 2019-02-01 17:12 刘顺利 阅读(433) 评论(0) 推荐(0)

asp.net core 读取配置

摘要: var configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory) .AddJsonFile("appsettings.json") .Build(); DBUtility.ConfigIn 阅读全文

posted @ 2019-02-01 15:07 刘顺利 阅读(102) 评论(0) 推荐(0)

Asp.Net Core run on Ubuntu

摘要: dotnet *.dll 阅读全文

posted @ 2019-02-01 14:23 刘顺利 阅读(98) 评论(0) 推荐(0)

2019年1月31日

.net core中使用GB2312编码

摘要: 引用 System.Text.Encoding.CodePages 注册 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 阅读全文

posted @ 2019-01-31 16:30 刘顺利 阅读(309) 评论(0) 推荐(0)

2019年1月30日

ubuntu mysql 安装

摘要: 安装mysql sudo apt-get install mysql-server mysql-client 测试是否安装成功 sudo netstat -tap | grep mysql 相关操作 登录 mysql -uroot -p 检查MySQL服务器占用端口 netstat -nlt|gre 阅读全文

posted @ 2019-01-30 17:12 刘顺利 阅读(131) 评论(0) 推荐(0)

2019年1月28日

samba的安装

摘要: 修改文件sudo gedit /etc/samba/smb.conf 一. samba的安装: 二. 创建共享目录: 三. 创建Samba配置文件: 1. 保存现有的配置文件 2. 修改现配置文件 在smb.conf最后添加 四. 创建samba帐户 然后会要求你输入samba帐户的密码 [如果没有 阅读全文

posted @ 2019-01-28 13:35 刘顺利 阅读(195) 评论(0) 推荐(0)

2019年1月25日

查看目录中的内容及权限

摘要: ls -a 显示全部的文件及文件夹,包括隐藏的文件或文件夹 ls -l 显示较全的文件信息,包括权限、用户、用户组等。 ls -al 阅读全文

posted @ 2019-01-25 11:22 刘顺利 阅读(378) 评论(0) 推荐(0)

文件夹权限

摘要: sudo chmod -R 777 ××× -R代表当前文件夹及其内部所有内容 sudo chmod 600 ××× (只有所有者有读和写的权限)sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)sudo chmod 700 ××× (只有所有者有读和写以及执行的权限 阅读全文

posted @ 2019-01-25 11:21 刘顺利 阅读(271) 评论(0) 推荐(0)

更改端口

摘要: dotnet WebApplication1.dll --server.urls "http://*:8080" 阅读全文

posted @ 2019-01-25 08:53 刘顺利 阅读(163) 评论(0) 推荐(0)

2019年1月24日

路径问题

摘要: 在进行asp.net core 开发时,路径应该使用“/”,而非"\",以兼容linux. 阅读全文

posted @ 2019-01-24 16:33 刘顺利 阅读(118) 评论(0) 推荐(0)

2019年1月23日

Install the .NET SDK In Ubuntu

摘要: 安装环境wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo add-apt-repos 阅读全文

posted @ 2019-01-23 11:12 刘顺利 阅读(194) 评论(2) 推荐(0)

2019年1月22日

切换到root用户

摘要: 通过su切换到root用户首先要重设置root用户的密码:xzm@ubuntu:~$ sudo passwd root登录root:su之后就可以自由的切换到root用户了xzm@ubuntu:~$ su输入root用户的密码即可。su "king" 或者 exit回到用户权限 阅读全文

posted @ 2019-01-22 11:39 刘顺利 阅读(302) 评论(0) 推荐(0)

网络相关

摘要: 1.1 安装ifconfigSudu apt install net-tools1.2 查看网络ifconfig 阅读全文

posted @ 2019-01-22 11:38 刘顺利 阅读(98) 评论(0) 推荐(0)

用户

摘要: w查看当前活跃的用户列表groups 查看当前登录用户的组内成员groups test 查看test用户所在的组,以及组内成员whoami 查看当前登录用户名cat /etc/passwd查看所有的用户信息cat /etc/passwd|grep 用户名,用于查找某个用户cat /etc/group 阅读全文

posted @ 2019-01-22 11:37 刘顺利 阅读(123) 评论(0) 推荐(0)

samba

摘要: samba,samba-client, samba-common 一句 sudo apt-get install samba samba-client 就能全部装上 启动samba也很简单: sudo /etc/init.d/samba start 设置samba的密码, 可以先添加samba用户, 阅读全文

posted @ 2019-01-22 11:36 刘顺利 阅读(92) 评论(0) 推荐(0)

用户操作

摘要: 一,组操作 1,创建组 groupadd test 增加一个test组 2,修改组 groupmod -n test2 test 将test组的名子改成test2 3,删除组 groupdel test2 删除 组test2 4,查看组 a),查看当前登录用户所在的组 groups,查看apache 阅读全文

posted @ 2019-01-22 10:25 刘顺利 阅读(149) 评论(0) 推荐(0)

2018年12月7日

居中

摘要: position: absolute; width: 90%; min-height: 300px; background: #fff; left: 50%; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: tr 阅读全文

posted @ 2018-12-07 17:27 刘顺利 阅读(86) 评论(0) 推荐(0)

replace 重写

摘要: String.prototype.myReplace = function (f, e) {//把f替换成e var reg = new RegExp(f, "g"); //创建正则RegExp对象 return this.replace(reg, e); } let str = "2018-8-1 阅读全文

posted @ 2018-12-07 16:40 刘顺利 阅读(230) 评论(0) 推荐(0)

2018年12月6日

JS数组添加元素的三种方式

摘要: 1、push() 结尾添加 数组.push(元素) 2、unshift() 头部添加 数组.unshift(元素) 3、splice() 方法向/从数组指定位置添加/删除项目,然后返回被删除的项目。 阅读全文

posted @ 2018-12-06 09:56 刘顺利 阅读(504) 评论(0) 推荐(0)

2018年11月20日

临沧融媒-技术服务支持

摘要: 阅读全文

posted @ 2018-11-20 09:56 刘顺利 阅读(271) 评论(0) 推荐(0)

导航