摘要: 查看linux防火墙状态firewall-cmd --state 关闭防火墙systemctl stop firewalld.service 开启防火墙systemctl start firewalld.service 阅读全文
posted @ 2020-04-23 15:23 龙族少年 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1. 连接上linux后,输入命令 vi /etc/hosts 末尾加inux服务器的ip地址和hostname,比如: 192.168.2.3 db012. 输入命令 vi /etc/sysconfig/network 敲击键盘上的 i 字母进入编辑模式,末尾加入: NETWORKING=yesH 阅读全文
posted @ 2020-04-23 11:34 龙族少年 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 1、win+r→输入gpedit.msc,打开“本地组策略编辑器”,按照下图找到“关闭事件跟踪程序”,双击打开右边的图,选择“已禁用”,点击确定! 阅读全文
posted @ 2020-03-28 15:53 龙族少年 阅读(2560) 评论(0) 推荐(0) 编辑
摘要: 1.win+r,输入cmd。 2.输入:【ipconfig /all】。 3.在以太网适配器上,有个物理地址,那么就是Mac地址。 阅读全文
posted @ 2020-03-28 10:43 龙族少年 阅读(2281) 评论(0) 推荐(0) 编辑
摘要: 1、设置密码永不过期 快速打开计算机管理的方式 "win+R" 打开运行,输入 "compmgmt.msc" ,回车搞定! 2.取消密码复杂度 服务器管理器=》工具=》本地安全策略=》账户策略=》密码策略 注意:禁用“密码必须符合复杂性要求”,密码最长使用期限设置为“0” 3、修改密码 开始=》设置 阅读全文
posted @ 2020-03-28 10:35 龙族少年 阅读(14562) 评论(0) 推荐(0) 编辑
摘要: SQL语句截取时间,只显示年月日(2004-09-12) select CONVERT(varchar, 字段名, 120 ) eg:select convert(varchar(11),vc_createdate,120) '日期' from table 扩展:其他格式 select CONVER 阅读全文
posted @ 2020-03-25 17:50 龙族少年 阅读(171) 评论(0) 推荐(0) 编辑
摘要: SET @I = '12-办公室'SELECT SUBSTRING(@I,CHARINDEX('-',@I) + 1,LEN(@I) - CHARINDEX('-',@I)) 结果:办公室 declare @str nvarchar(50);set @str='462,464,2';select @ 阅读全文
posted @ 2020-03-25 17:48 龙族少年 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 给windows全局变量-path,添加"F:\oralce\product\12.2.0\client_1\bin"。 注:盘符为你安装Oracle客户端的地址 阅读全文
posted @ 2020-03-25 17:47 龙族少年 阅读(2409) 评论(0) 推荐(0) 编辑
摘要: @Html.Raw()的作用 @Html.Raw() 方法输出带有html标签的字符串,如:@Html.Raw("<div style='color:red'>红字</div>")结果:红字 如果不用,则会输出:<div style='color:red'>红字</div> 阅读全文
posted @ 2020-03-25 17:46 龙族少年 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 在写LINQ语句的时候,往往会看到.AsEnumerable() 和 .AsQueryable() 。例如: string strcon = "Data Source=.\\SQLEXPRESS;Initial Catalog=Db_Example;Persist Security Info=Tru 阅读全文
posted @ 2020-03-25 17:45 龙族少年 阅读(340) 评论(0) 推荐(0) 编辑