2017年5月12日

摘要: 1.初始化本地的git仓库git init,代码存放在这里,git会自动对我们的代码进行管理备份。 2.设置用户信息,设置用户名:git config --global user.name "xinye" 设置邮箱信息:git config --global user.email "xinye@qq 阅读全文
posted @ 2017-05-12 11:10 新页2016 阅读(126) 评论(0) 推荐(0)

2017年1月24日

摘要: 1.安装好ubuntu的ssh服务,使用xshell登录虚拟机 2.下载安装包: wget -c https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.0.0-omnibus-1_amd64.deb 3.安装gitlab: 阅读全文
posted @ 2017-01-24 15:19 新页2016 阅读(1079) 评论(0) 推荐(0)

2017年1月23日

摘要: 1.为ubuntu添加root用户(其实Ubuntu中的root帐号默认是被禁用了的,所以登陆的时候没有这个账号),打开初始账号,输入命令:sudo passwd root,设置root的密码 2.切换为root用户,输入命令:su root 3.Ubuntu默认并没有安装ssh服务,通过如下命令进 阅读全文
posted @ 2017-01-23 18:03 新页2016 阅读(470) 评论(0) 推荐(0)

2017年1月17日

摘要: 输入"sudo apt-get update"-->回车-->"输入root用户的密码"-->回车; 输入"sudo apt-get install mysql-server mysql-client"-->回车-->输入"y"-->回车-->在"软件包设置对话框"中输入mysql中"root"用户 阅读全文
posted @ 2017-01-17 18:13 新页2016 阅读(185) 评论(0) 推荐(0)

2017年1月16日

摘要: /etc/init.d/networking restart /etc/init.d/networking restart 原来Ubuntu 16.04网卡不再采用eth0命名,这和RHEL系列一样,此时需要查看真正的网卡名称是神马: cd /proc/sys/net/ipv4/conf 在该目录下 阅读全文
posted @ 2017-01-16 19:01 新页2016 阅读(4680) 评论(0) 推荐(0)

2017年1月15日

摘要: 有两个有嵌套关系的div,如果外层div的父元素的padding值为0,那么内层子div的margin-top或margin-bottom的值会转移给外层的父div,即magrin塌陷现象。 解决办法: 1.在父元素div上加上:overflow:hidden; 2.把margin-top外边距改成 阅读全文
posted @ 2017-01-15 15:11 新页2016 阅读(221) 评论(0) 推荐(0)