1
0
killua 5 роки тому
батько
коміт
35a5099e35

+ 1 - 1
_config.yml

@@ -35,7 +35,7 @@ titlecase: false # Transform title into titlecase
 external_link: true # Open external links in new tab
 filename_case: 0
 render_drafts: false
-post_asset_folder: false
+post_asset_folder: true
 relative_link: false
 future: true
 highlight:

+ 7 - 21
package-lock.json

@@ -1001,13 +1001,11 @@
         },
         "balanced-match": {
           "version": "1.0.0",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "brace-expansion": {
           "version": "1.1.11",
           "bundled": true,
-          "optional": true,
           "requires": {
             "balanced-match": "^1.0.0",
             "concat-map": "0.0.1"
@@ -1020,18 +1018,15 @@
         },
         "code-point-at": {
           "version": "1.1.0",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "concat-map": {
           "version": "0.0.1",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "console-control-strings": {
           "version": "1.1.0",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "core-util-is": {
           "version": "1.0.2",
@@ -1134,8 +1129,7 @@
         },
         "inherits": {
           "version": "2.0.3",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "ini": {
           "version": "1.3.5",
@@ -1145,7 +1139,6 @@
         "is-fullwidth-code-point": {
           "version": "1.0.0",
           "bundled": true,
-          "optional": true,
           "requires": {
             "number-is-nan": "^1.0.0"
           }
@@ -1158,20 +1151,17 @@
         "minimatch": {
           "version": "3.0.4",
           "bundled": true,
-          "optional": true,
           "requires": {
             "brace-expansion": "^1.1.7"
           }
         },
         "minimist": {
           "version": "0.0.8",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "minipass": {
           "version": "2.2.4",
           "bundled": true,
-          "optional": true,
           "requires": {
             "safe-buffer": "^5.1.1",
             "yallist": "^3.0.0"
@@ -1188,7 +1178,6 @@
         "mkdirp": {
           "version": "0.5.1",
           "bundled": true,
-          "optional": true,
           "requires": {
             "minimist": "0.0.8"
           }
@@ -1261,8 +1250,7 @@
         },
         "number-is-nan": {
           "version": "1.0.1",
-          "bundled": true,
-          "optional": true
+          "bundled": true
         },
         "object-assign": {
           "version": "4.1.1",
@@ -1272,7 +1260,6 @@
         "once": {
           "version": "1.4.0",
           "bundled": true,
-          "optional": true,
           "requires": {
             "wrappy": "1"
           }
@@ -1378,7 +1365,6 @@
         "string-width": {
           "version": "1.0.2",
           "bundled": true,
-          "optional": true,
           "requires": {
             "code-point-at": "^1.0.0",
             "is-fullwidth-code-point": "^1.0.0",

+ 129 - 0
source/_posts/Linux.md

@@ -0,0 +1,129 @@
+---
+title: Linux
+date: 2018-08-29 21:35:55
+tags: linux
+categories: skill
+---
+### Linux 命令
+> Tomcat Debug启动
+```
+./catalina.sh jpda start
+默认启动.sh中的8000端口,指定端口命令
+./catalina.sh jpda start -debug XXXX
+
+```
+> springboot debug
+```
+java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 yahu-rest2.jar --spring.profiles.active=test  --spring.config.location=classpath:/application.properties,/etc/config/yahu/application-test.properties
+```
+
+> 查看端口
+```
+显示所有端口和所有对应的程序:
+netstat -tunlp
+某个端口
+netstat -anp | grep XXXX
+系统端口
+netstat -anp
+
+mac/centos查看端口情况
+lsof -i tcp:port  
+mac svn 检出
+svn co https://120.25.206.19:8443/svn/SCS/branches/baorong /Users/zhiyong/Documents/Code/ideaProjects/baorong 
+
+```
+> 查看进程
+```
+ps -ef | grep (tomcat)
+```
+>查看
+```
+regedit
+cat
+vim(:q/:q! 退出,:wq 保存)
+tail -f 动态查看
+tail -f -n (int) 查看最后多少行
+搜索文件
+grep -n "=========" (filePath)
+(-n查看行数)
+sed -n 10,20p (filePath) 
+查看10-20行数据
+```
+> linux开机启动项
+```
+/etc/rc.d/rc.local
+```
+> Centos开机启动项
+```
+/etc/rc.local
+```
+
+> 删除
+```
+直接rm就可以了,不过要加两个参数-rf 即:
+-r 就是向下递归,不管有多少级目录,一并删除
+-f 就是直接强行删除,不作任何提示的意思
+rm -rf (filePath)
+
+```
+
+> 解压
+```
+tar zxvf (FilePath) -C 
+默认解压到当前路径,后面可加解压路径
+uzip (FilePath)
+```
+
+> linux查看设置编码格式
+```
+vi (FilePath)
+//查看
+:set ff / :set fileformat
+//fileformat=dos 或 fileformat=unix
+//设置
+:set ff=unix 或 :set fileformat=unix
+//保存
+:wq
+```
+> 文件查找
+```
+find / -name 'ems-man*'
+```
+> 查看磁盘使用
+```
+df -lh
+```
+> 查看cpu内存使用
+```
+top
+```
+> 查看大于500M的文件
+```
+ find /  -type f -size +500M  -print0 | xargs -0 ls –l
+```
+> centos 环境变量
+```
+export PATH  USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
+export JAVA_HOME=/data/java/jdk8
+export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
+export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/bin:$CLASSPATH
+```
+```
+vi /etc/profile
+source /etc/profile
+```
+> centos 卸载 软件 eg.openJDK
+```
+rpm -qa|grep java
+rpm -e --nodeps ****
+安装
+rpm -ivh 
+```
+> 用户管理
+```
+新增  useradd
+更改密码 passwd 
+
+查看用户 /etc/passwd
+查看组 /etc/group
+```

+ 11 - 13
themes/material-flow/_config.yml

@@ -18,14 +18,8 @@ search:
 
 # friends link
 links:
-  - name: ClassicOldSong
-    url: https://ccoooss.com
-  - name: Frantic1048
-    url: https://frantic1048.logdown.com/
-  - name: Hclmaster
-    url: https://hclmaster.github.io/
-  - name: WANG Hsü-Tung
-    url: https://whst.github.io/
+  - name: Gogs
+    url: https://git.dzdy.xyz
 
 # navigation menu
 menu:
@@ -35,9 +29,9 @@ menu:
   - name: Archives
     slug: archives
     url: /archives
-  - name: Gallery
-    slug: gallery
-    url: source/images/gallery.jpg
+  # - name: Gallery
+  #   slug: gallery
+  #   url: https://dzdy-1252491474.cos.ap-chengdu.myqcloud.com/gallery.jpg
   - name: About
     slug: about
     url: /about
@@ -56,8 +50,12 @@ less:
 # use url, not username
 social:
 - slug: github
-  url: https://github.com/stkevintan
+  url: https://github.com/Killua67
 - slug: twitter
-  url: https://twitter.com/kevinsfork
+  url: https://twitter.com/Killua_wit
 - slug: rss
 	url: /atom.xml
+
+avatar: https://dzdy-1252491474.cos.ap-chengdu.myqcloud.com/icon.png
+favicon:
+  medium: /images/favicon.ico

+ 1 - 1
themes/material-flow/layout/_widget/about.ejs

@@ -4,6 +4,6 @@
 <%} %>
 <div class='header'><%=config.author %></div>
 <div class='content'>
-<div class='desc'>Tempora mutantur, nos et mutamur in illis ...</div>
+<div class='desc'>One day, I will not laugh than</div>
 </div>
 </section>

BIN
themes/material-flow/source/images/favicon.ico


BIN
themes/material-flow/source/images/icon.png