Skip to content

Commit 9c94079

Browse files
committed
2016-02-27完善资料
1 parent 62fceae commit 9c94079

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

Bash.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
<h1id="bash0">Bash 常用命令</h1>
1+
<h1id="bash">Bash 常用命令</h1>
22

33
------
44

5-
* [Bash 常用命令](#bash0)
6-
* [基础常用命令](#bash1)
7-
* [资料](#bash2)
5+
* [Bash 常用命令](#bash)
6+
* [基础常用命令](#base)
7+
* [资料](#information)
8+
* [[资料]](#information)
89

910
------
1011

11-
<h2id="bash1">基础常用命令</h2>
12-
13-
- 疑问:
14-
- locate 和 find 的区别,locate 速度很快,正常应该是有创建索引的可能,然后利用索引进行搜索,find 应该是每次都进行全文检索
15-
- hwclock --systohc 或 hwclock -w 的区别
16-
- `more 文件名`,用分页的方式查看文件内容(只能空格进行翻下一页,没办法翻上页)应该是可以翻上下页的
17-
18-
<h2id="bash1">基础常用命令</h2>
12+
<h2id="base">基础常用命令</h2>
1913

2014
- `某个命令 --h`,对这个命令进行解释
2115
- `某个命令 --help`,解释这个命令(更详细)
@@ -42,13 +36,13 @@
4236
- `passwd`,修改当前用户密码(常用)
4337
- `date`,查看系统时间(常用)
4438
- `date -s20080103`,设置日期(常用)
45-
- `date -s18:24`,设置时间,如果要同时更改 BIOS 时间,再执行 `hwclock --systohc 或 hwclock -w`(常用)
39+
- `date -s18:24`,设置时间,如果要同时更改 BIOS 时间,再执行 `hwclock --systohc`(常用)
4640
- `cal`,在终端中查看日历,肯定没有农历显示的
4741
- `uptime`,查看系统已经运行了多久,当前有几个用户等信息(常用)
4842
- `echo "字符串内容"`,输出"字符串内容"
4943
- `cat 文件路名`,显示文件内容(属于打印语句)
5044
- `cat -n 文件名`,显示文件,并每一行内容都编号
51-
- `more 文件名`,用分页的方式查看文件内容(只能空格进行翻下一页,没办法翻上页
45+
- `more 文件名`,用分页的方式查看文件内容(按 space 翻下一页,按 Ctrl + B 返回上页
5246
- `less`文件名,用分页的方式查看文件内容(带上下翻页)
5347
- 按 **j** 向下移动,按 **k** 向上移动
5448
- 按 **/** 后,输入要查找的字符串内容,可以对文件进行向下查询,如果存在多个结果可以按 **n** 调到下一个结果出
@@ -83,6 +77,11 @@
8377
- `ls -F`,列出当前目录下的文件名及其类型。以 **/** 结尾表示为目录名,以 **\*** 结尾表示为可执行文件,以 **@** 结尾表示为符号连接
8478
- `ls -lg`,同上,并显示出文件的所有者工作组名。
8579
- `ls -lh`,查看文件夹类文件详细信息,文件大小,文件修改时间
80+
- `ls -l /opt |grep "^-"|wc -l`,统计 opt 目录下文件的个数,不会递归统计
81+
- `ls -lR /opt |grep "^-"|wc -l`,统计 opt 目录下文件的个数,会递归统计
82+
- `ls -l /opt |grep "^d"|wc -l`,统计 opt 目录下目录的个数,不会递归统计
83+
- `ls -lR /opt |grep "^d"|wc -l`,统计 opt 目录下目录的个数,会递归统计
84+
- `ls -lR /opt |grep "js"|wc -l`,统计 opt 目录下 js 文件的个数,会递归统计
8685
- `cd`,目录切换
8786
- `cd ..`,改变目录位置至当前目录的父目录(上级目录)。
8887
- `cd ~`,改变目录位置至用户登录时的工作目录。
@@ -111,6 +110,6 @@
111110
- `find. -name "lin*" -execls -l{}\;`,当前目录搜索lin开头的文件,然后用其搜索后的结果集,再执行ls -l的命令(这个命令可变,其他命令也可以),其中-exec和{}\;都是固定格式
112111

113112

114-
<h2id="bash2">资料</h2>
113+
<h2id="information">资料</h2>
115114

116115
- <http://wenku.baidu.com/view/1ad19bd226fff705cc170af3.html>

Nexus-Install-And-Settings.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
<h1 id="nexus0">Nexus 安装和配置</h1>
1+
<h1 id="nexus">Nexus 安装和配置</h1>
22

33
------
44

5-
* [Nexus 安装和配置](#nexus0)
6-
* [Nexus 安装](#nexus1)
7-
* [Nexus 配置](#nexus2)
8-
* [资料](#nexus3)
5+
* [Nexus 安装和配置](#nexus)
6+
* [Nexus 安装](#install)
7+
* [Nexus 配置](#settings)
8+
* [Nexus 手动更新索引文件](#update-index)
9+
* [资料](#information)
910

1011
------
1112

12-
<h2 id="nexus1">Nexus 安装</h2>
13+
<h2 id="install">Nexus 安装</h2>
1314

1415
- Nexus 安装
1516
- 官网:<http://www.sonatype.org/nexus/>
@@ -40,7 +41,7 @@
4041
```
4142
- 刷新配置:`source /etc/profile`
4243
- 由于目录 `sonatype-work` 以后是做仓库用的,会存储很多 jar,所以这个目录一定要放在磁盘空间大的区内,目前我们还没第一次启动 Nexus,所以这里还是空文件
43-
- 我个人习惯把这类目录放在 `/opt` 下:`mv /opt/setup/sonatype-work/ /opt/`
44+
- 我个人习惯把这类目录放在 `/opt` 下,所以你要特别注意,下面有内容对这个文件夹进行操作的都是基于 opt 目录的:`mv /opt/setup/sonatype-work/ /opt/`
4445
- 设置配置文件:`vim /usr/program/nexus2.11.4/conf/nexus.properties`
4546
- 把文件中该值:`nexus-work=${bundleBasedir}/../sonatype-work/nexus`
4647
- 改为:`nexus-work=/opt/sonatype-work/nexus`
@@ -60,7 +61,7 @@
6061
6162
6263
63-
<h2 id="nexus2">Nexus 配置</h2>
64+
<h2 id="settings">Nexus 配置</h2>
6465
6566
- 下载远程中央库的索引到服务器
6667
- ![Nexus 配置](images/Nexus-Install-And-Settings-a-1.jpg)
@@ -97,8 +98,7 @@
9798
```
9899
99100
100-
<h2 id="nexus2">Nexus 配置</h2>
101-
101+
<h2 id="update-index">Nexus 手动更新索引文件</h2>
102102
- 手动更新索引
103103
- 关闭 Nexus:`/usr/program/nexus2.11.4/bin/nexus stop`
104104
- 命令:`cd /opt/sonatype-work/nexus/indexer/central-ctx`
@@ -111,7 +111,7 @@
111111
- 删除解压前文件:`rm -rf indexer-cli-5.1.0.jar nexus-maven-repository-index.gz nexus-maven-repository-index.properties`
112112
- 重启服务:`/usr/program/nexus2.11.4/bin/nexus start`
113113
114-
<h2 id="nexus3">资料</h2>
114+
<h2 id="information">资料</h2>
115115
116116
- <http://www.cnblogs.com/leefreeman/p/4211530.html>
117117
- <http://www.itdadao.com/article/89071/>
@@ -122,4 +122,4 @@
122122
- <http://my.oschina.net/liangbo/blog/195739>
123123
- <http://www.mamicode.com/info-detail-1016489.html>
124124
- <http://blog.csdn.net/shawyeok/article/details/23564681>
125-
- <http://zyjustin9.iteye.com/blog/2017321>
125+
- <http://zyjustin9.iteye.com/blog/2017321>

0 commit comments

Comments
 (0)