首页 > 其他
命令操作
#文件管理器# 显示当前工作目录-----pwd 返回父级目录----------cd ../ 返回之前刚用过的目录-----cd - 进入子目录-------------cd 目录名 **dengwo@dengwo-ThinkPad-Edge-E530:~/xuexi$ pwd /home/dengwo/xuexi...
分类:其他   时间:2015-01-04 19:45:53    收藏:0  评论:0  赞:0  阅读:337
我的第一个微软MVP
2015年元旦三天假期就这么过去了,回想起来2014年还是意义非凡,换了工作,终于从原先的繁杂的流水线工作,渐渐回到了有时间可以研究东西的一个工作状态。想想从网络转到系统也近两年了,渐渐习惯了从交换路由到系统运维的一个转换,也终于在2015的开年获得了微软的MVP,不得不..
分类:其他   时间:2015-01-04 19:44:43    收藏:0  评论:0  赞:0  阅读:266
[LeetCode]69 Sqrt(x)
https://oj.leetcode.com/problems/sqrtx/http://blog.csdn.net/linhuanmars/article/details/20089131publicclassSolution{ publicintsqrt(intx){ //Assumex>=0 if(x==0) return0; returns(x,0L,(long)x); } privateintcalc(intx,longlow,longhigh) { //Whyusinglong. /..
分类:其他   时间:2015-01-04 19:44:03    收藏:0  评论:0  赞:0  阅读:271
kickstart无人职守安装
1先将需要安装的系统文件挂载到/mnt:#mount-tcifs-ousername=administrator,passwd=abcde//192.168.1.99/iso/mnt/21-1进入挂载的/mnt目录,RPM安装dhcp,tftp,kickstart:#rpm-ivh*kickstart*#rpm-ivhxinetd-2.3.14-10.el5.i386.rpm(tftp服务)#rpm-ivhdhcp-3.0.5-23.el5.i386..
分类:其他   时间:2015-01-04 19:43:33    收藏:0  评论:0  赞:0  阅读:334
nginx安装
linux下安装安装pcre-8.36configure:error:YouneedaC++compilerforC++support[root@localhostpcre-8.36]#./configure………………………………………………configure:error:YouneedaC++compilerforC++support.[root@localhostpcre-8.36]#yuminstall-ygccgcc-c++[root@localhost..
分类:其他   时间:2015-01-04 19:43:23    收藏:0  评论:0  赞:0  阅读:231
[LeetCode]70 Climbing Stairs
https://oj.leetcode.com/problems/climbing-stairs/http://blog.csdn.net/linhuanmars/article/details/23976963publicclassSolution{ publicintclimbStairs(intn) { //Arecursivesolution //if(n==1||n==2) //{ //return1; //} //returnclimbStairs(n-1)+climbStairs(n-2); ..
分类:其他   时间:2015-01-04 19:43:03    收藏:0  评论:0  赞:0  阅读:325
复制或保存结果时包括列标题
在SSMS(SQLServerManagementStudio)中,在复制或保存结果时可以包括列标题。在查询结果的网格窗口,在右键菜单中选择“连同标题一起复制”,即可在复制时包括列标题。但是,在右键菜单中选择“将结果另存为”时,输出结果时默认不包括列标题。解决方案:打开“工具”-“选项..
分类:其他   时间:2015-01-04 19:42:54    收藏:0  评论:0  赞:0  阅读:267
[LeetCode]71 Simplify Path
https://oj.leetcode.com/problems/simplify-path/http://blog.csdn.net/linhuanmars/article/details/23972563publicclassSolution{ publicStringsimplifyPath(Stringpath){ if(path==null) returnnull; String[]paths=path.split("/"); Stack<String>stack=newStack&..
分类:其他   时间:2015-01-04 19:42:13    收藏:0  评论:0  赞:0  阅读:306
Vsftpd安装、系统用户及虚拟用户配置详解
一.安装与启动vsftpdyum-yinstallvsftpd/usr/sbin/vsftpd或servicevsftpdstartnetstat-ntlpchkconfig--level35vsftpdon二.FTP相关配置文件说明1.vsftpd.conf文件说明anonymous_enable=YES是否允许匿名ftp,如否则选择NOlocal_enable=YES是否允许本地用户登录write_enable=YES允..
分类:其他   时间:2015-01-04 19:41:43    收藏:0  评论:0  赞:0  阅读:292
ansible学习总结
1:安装安装依赖库yuminstall-yzlibzlib-develyuminstall-yopensslopenssl-devel源代码编译安装py #编译安装python2.7mkdir-p/usr/local/src/python_srccd/usr/local/src/python_srcwgethttp://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2tar-xfPython-2.7.5.tar.bz..
分类:其他   时间:2015-01-04 19:41:13    收藏:0  评论:0  赞:0  阅读:366
CentOS之Phabricator的安装配置必须成功版!
https://secure.phabricator.com/book/phabricator/article/installation_guide/#installation-requirement以上是官方文档把centos版的phabricator安装脚本下载到opt目录并安装#cd/opt#wgethttp://www.phabricator.com/rsrc/install/install_rhel-derivs.sh#chmod777install_rh..
分类:其他   时间:2015-01-04 19:40:53    收藏:0  评论:0  赞:0  阅读:340
ansible 一些简单的使用
[root@ha~]#lsanaconda-ks.cfgansiblehar1.shhar.shinstall.loginstall.log.syslogpurge_relay_logs.shshell[root@ha~]#cdansible/[root@haansible]#lsbookhost[root@haansible]#pwd/root/ansible[root@haansible]#lsbookhost[root@haansible]#我的host主机和play-book是在单独..
分类:其他   时间:2015-01-04 19:40:33    收藏:0  评论:0  赞:0  阅读:337
2015年,让自己不再有遗憾
不知不觉,2014带着许多遗憾走了,就像自己的程序,总不够完美,总有这一些那一些的Bugs,总有很多想法未能加入,然后被催促着上线,当然,这也与患有严重拖延症的我,有相当大的关系。新技术层出不穷,新领域也越来越多,今天这个大会,明天那个高峰会,已让我们这些啃老族不..
分类:其他   时间:2015-01-04 19:40:23    收藏:0  评论:0  赞:0  阅读:304
ansible 模块学习
Ansible通过模块的方式来完成一些远程的管理工作。可以通过ansible-doc-l查看所有模块,可以使用ansible-doc-smodule来查看某个模块的参数,也可以使用ansible-dochelpmodule来查看该模块更详细的信息。默认的模块位置在/usr/share/ansible。下面列出一些常用的模块:1.setup可..
分类:其他   时间:2015-01-04 19:40:03    收藏:0  评论:0  赞:1  阅读:557
十二个UML工具
1.StarUMLStarUML是一个开源UML项目,可以开发快速,灵活,可扩展,多功能并且免费的UML/MDA平台。此项目运行在Win32平台之上。StarUML项目的目标是成为RationalRose、Together等商业UML工具的替代者。2.NetbeansUMLPluginNetBeansUML插件目前支持以下UML图:活动图,类图,序..
分类:其他   时间:2015-01-04 19:39:43    收藏:0  评论:0  赞:0  阅读:942
忘记CentOS 7.0 root密码后,更改密码的方法如下
1、启动画面出来时,选择第一项,并按下e字母键。如下图2、移动光标键,找到linux16这一行。如下图3、如图,将ro改成成为rwinit=sysroot/bin/sh,并执行ctrl-x4、执行以下命令,如下图5、最后重启,进入系统
分类:其他   时间:2015-01-04 19:38:43    收藏:0  评论:0  赞:0  阅读:293
before和:after伪元素
before和after都是前端常用到的伪元素,在中文的直接翻译里,before代表着之前after代表着之后在css中,也大概是这样子;如下代码:HTML代码<pclass="box">thisiselement</p>css代码//before中文翻译为在前 //after中文翻译为在后 p.box{ width:500px; border:soli..
分类:其他   时间:2015-01-04 19:38:23    收藏:0  评论:0  赞:0  阅读:253
CentOS7 修改网卡的名字为eth0
vi/etc/sysconfig/network-scripts/ifcfg-enp0s3name="eth0"mv/etc/sysconfig/network-scripts/ifcfg-enp0s3/etc/sysconfig/network-scripts/ifcfg-eth0vi/etc/default/grunGRUB_DISTRIBUTOR="$(sed‘s,release.*$,,g‘/etc/system-release)"GRUB_DEFAULT=savedGRUB_DISABLE_SUBM..
分类:其他   时间:2015-01-04 19:38:13    收藏:0  评论:0  赞:0  阅读:282
[LeetCode]72 Edit Distance
https://oj.leetcode.com/problems/edit-distance/http://blog.csdn.net/linhuanmars/article/details/24213795publicclassSolution{ publicintminDistance(Stringword1,Stringword2) { if(word1==null||word2==null) return-1; if(word1.isEmpty()) returnword2.length();//I..
分类:其他   时间:2015-01-04 19:37:53    收藏:0  评论:0  赞:0  阅读:265
[LeetCode]73 Set Matrix Zeroes
https://oj.leetcode.com/problems/set-matrix-zeroes/http://blog.csdn.net/linhuanmars/article/details/24066199publicclassSolution{ publicvoidsetZeroes(int[][]matrix) { //SolutionA: //setZeroes_NoExtraSpace(matrix); //SolutionB: setZeroes_ExtraRowAndCol(matri..
分类:其他   时间:2015-01-04 19:37:33    收藏:0  评论:0  赞:0  阅读:271
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!