
linux命令及使用技巧
嘟嘟忍者
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据分位值计算shell脚本
数据|sort -n|perl -e '@tp=(.500,.75,.9,.97,.99,.995,.999);@l=<>;for($i=0;$i<@tp;$i++) {$d=@tp[$i];printf "TP:%-10.3f%.3f\n",$d,$l[int($d*$#l)]}'原创 2021-04-25 10:56:56 · 1274 阅读 · 0 评论 -
ubuntu开启mysql外部访问权限
安装了ubuntu11.10版本,通过sudo apt-get install mysql-server安装了了mysql,这里不做安全考虑,我直接给权限了。 1.连接进入; #mysql -u root -proot(这里密码在mysql安装过程中提示有设置) 2.我这里直接给root的外部访问权限了; #grant all privileges on *.* to ‘root’转载 2016-11-10 19:02:58 · 6360 阅读 · 0 评论 -
mysql 操作命令
1,添加用户及全部权限: grant all privileges on *.* to username@”%” identified by "password"; flush privileges; 2,删除用户权限及用户 mysql> revoke all on *.* from unism ; Query OK, 0 rows affected mysql> use原创 2016-11-05 14:37:28 · 305 阅读 · 0 评论 -
vi 整行 多行 复制与粘贴
vi编辑器中的整行(多行)复制与粘贴就非常必要了。 1、复制 1)单行复制 在命令模式下,将光标移动到将要复制的行处,按“yy”进行复制; 2)多行复制 在命令模式下,将光标移动到将要复制的首行处,按“nyy”复制n行;其中n为1、2、3…… 2、粘贴 在命令模式下,将光标移动到将要粘贴的行处,按“p原创 2016-11-04 17:39:23 · 440 阅读 · 0 评论 -
CentOS下iptables的端口映射
一、环境与需求 实验环境 节点的网络设置如下: 节点 网卡 IP 网络 Node1 eth0 172.19.104.33 内网 Node1 eth1 6.6.5.5 外网 Node2 eth0 172.19.104.14 内网 需转载 2016-11-18 22:59:25 · 2629 阅读 · 0 评论 -
supervisor配置
[program:social]directory=/opt/zyz/socialcommand=/opt/zyz/social/socialuser=optzautostart=trueautorestart=trueredirect_stderr=truestdout_logfile=/opt/zyz/log/social_tmp.log原创 2018-06-05 15:16:35 · 374 阅读 · 0 评论 -
进阶问题
1. 用户态和内核态是什么?区别在哪? 2. nginx为什么如此高效?为什么http服务不采用nginx同样的策略? 3. 一次完整的http请求的完整过程是什么?七层协议每层做了什么? 4. b+数据索引了解 ...原创 2019-01-16 18:02:35 · 466 阅读 · 0 评论 -
跨跳板机登陆服务器shell脚本
#!/usr/bin/expect -f set password "123456" set serverHost "tx3-gaia-testad01.bj" spawn ssh wuchengjin@relay.inke.cn for {set i 0} {$i < 10} {incr i} { expect { "*assword:"...原创 2019-04-02 10:54:40 · 1038 阅读 · 0 评论