14.04 老版本安装 sudo apt-get update sudo apt-get install -y docker.io sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker sudo sed -i '$acomplete -F _doc ...
分类:
其他好文 时间:
2017-10-26 11:46:43
阅读次数:
240
文件管理命令ls-l第一列是文件类型-:普通文件c:字符文件l:链接p:管道文件b:块设备ls-m逗号隔开[root@localhost~]#ls-m/var/adm,cache,crash,db,empty,games,gopher,kerberos,lib,local,lock,log,mail,nis,opt,preserve,run,spool,tmp,var,ypls--time=atime访问时间--time=..
分类:
系统相关 时间:
2017-10-24 18:20:30
阅读次数:
275
The Lucas numbers are closely related to the Fibonacci numbers and satisfy the same recursion relation Ln+1=Ln+Ln?1, but with starting values L1=1 and ...
分类:
其他好文 时间:
2017-10-19 09:23:59
阅读次数:
173
1、安装node apt-get install node.js 2、安装npm apt-get install npm 3、安装cnpm npm install -g cnpm 创建链接:ln -s cnpm安装路径 /usr/bin/cnpm cnpm安装路径的寻找:找到node安装目录,则可以 ...
分类:
移动开发 时间:
2017-10-17 18:49:38
阅读次数:
211
Given a singly linked list L: L0?L1?…?Ln-1?Ln,reorder it to: L0?Ln?L1?Ln-1?L2?Ln-2?… You must do this in-place without altering the nodes' values. For ...
分类:
其他好文 时间:
2017-10-17 15:31:55
阅读次数:
133
#!/usr/bin/envpython#-*-coding:utf-8-*-#@Time:2017/10/623:11#@Author:LN#@File:2.pyprint"hello,world!"
分类:
其他好文 时间:
2017-10-17 12:38:08
阅读次数:
129
下载二进制安装包因为二进制安装包是已经编译过的,所以路径是已经定义好的,解包时需指定路径,默认为:/usr/local/目录:tarxvfmariadb包C/usr/local/解包完成后,会在该目录下生成对应目录.需要将该目录改名或者创建软链接,使其名字为mysql,该名字是数据库配置文件中写死的ln-s对..
分类:
数据库 时间:
2017-10-16 21:47:39
阅读次数:
172
1rpm-qamariadb*2getentpasswdmysqluseradd-d/app/mysqldb-r-m-s/sbin/nologinmysql3tarxvfmariadb-10.2.8-linux-x86_64.tar.gz-C/usr/local/cd/usr/local/ln-smariadb-10.2.8-linux-x86_64/mysql4cd/usr/local/mysql/mkdir/etc/mysql/cpsupport-files/my-huge.cnf/etc/mysql/m..
分类:
数据库 时间:
2017-10-16 21:39:37
阅读次数:
218
1.上传libcurl.so.4.1.1库文件到/usr/lib64 2.创建软连接 ln -s libcurl.so.4.1.1 libcurl.so.4 3.问题解决 文件下载链接:链接:http://pan.baidu.com/s/1geUfWll 密码:46r8 ...
分类:
Web程序 时间:
2017-10-16 16:31:23
阅读次数:
3145
对长为L的棒子随机取一点分割两部分,抛弃左边一部分,重复过程,直到长度小于d,问操作次数的期望。 区域赛的题,比较基础的概率论,我记得教材上有道很像的题,对1/len积分,$ln(L)-ln(d)+1$。 ...
分类:
其他好文 时间:
2017-10-12 21:40:34
阅读次数:
136