Quellcode durchsuchen

Merge remote-tracking branch 'origin/master'

lvzq vor 6 Jahren
Ursprung
Commit
103b14ce30

+ 5 - 1
_config.yml

@@ -97,7 +97,11 @@ theme: 3-hexo # 当前主题名称。值为false时禁用主题
 ## 需要注意的是这里的 repo 采用的是 ssh 的地址,而不是 https 的。分支我们默认采用 master 分支。
 ## Docs: https://hexo.io/docs/deployment.html
 deploy:
-  type: git
+- type: git
   repo: git@github.com:tujidelv/tujidelv.github.io.git
   branch: master
+  message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"
+- type: git
+  repo: ssh://git@144.34.207.84:26376/www/wwwroot/hexo.lvzhiqiang.top/hexo-blog.git
+  branch: master
   message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"

+ 3 - 0
source/_posts/git-navi.md

@@ -23,6 +23,7 @@ tags:
 
 ### 精华帖...
 
+- [戒毒十年慢慢说](http://doudoubbs.yxsyj.com/forum.php?mod=viewthread&tid=17838&page=1&authorid=5429)
 - [通过淘宝“买家秀”,我花8000块睡到了喜欢的coser](http://www.sohu.com/a/270138940_115207)
 - [中国2018社会热点大事记-月光博客](https://www.williamlong.info/archives/5567.html)
 - [罗振宇2018“时间的朋友”跨年演讲精华版全文|罗振宇|时间的朋友|演讲_新浪科技_新浪网](http://tech.sina.com.cn/i/2019-01-01/doc-ihqhqcis2043090.shtml)
@@ -139,6 +140,8 @@ tags:
     - [ZIAxNOA](https://www.pornhub.com/model/ziaxnoa)
     - [BLOWJOB SKILL](https://www.pornhub.com/view_video.php?viewkey=ph5c1b804ad3492)
     - [Y GIRLFRIEND IS HARD ON ME IN BED, AND MY GIRLFRIEND IS EXCITED](https://www.pornhub.com/view_video.php?viewkey=ph5ab787f0f0bc7)
+    - [qiezishipin's Profile](https://www.pornhub.com/users/qiezishipin)
+    - [Wmaf](https://cn.pornhub.com/video/search?search=wmaf)
 - Twitter
     - [森罗万象](https://twitter.com/287076147/)
 

+ 1 - 1
source/_posts/os-linux-basic.md

@@ -318,7 +318,7 @@ tags:
             ~]# service iptables stop
             ~]# chkconfig iptables off
     ---
-    连接:ssh root@172.16.249.74
+    连接:ssh root@172.16.249.74 -p端口号
     ```
 
 ### 文件系统

+ 2 - 1
source/_posts/os-linux-command.md

@@ -182,7 +182,8 @@ wget:网络客户端工具
     wget [option]... [URL]...
         -q: 静默模式
         -c: 续传
-        -P 保存位置
+        -P 指定下载文件的存放目录
+        -O 指定下载文件的名字,重命名
         --limit-rates=: 指定传输速率
 rz
 sz

+ 44 - 0
source/_posts/os-linux-packages-install.md

@@ -68,6 +68,50 @@ tags:
     # java -version
     ```
     
+### `TOMCAT的安装和配置`
+
+1. 下载 TOMCAT 程序包,rpm或者tar.gz格式的都可以
+    ```
+    方法1:
+        1. 去jdk官网找到指定版本的jdk,并复制其链接地址
+        2. wget -P /opt/setups/ http://apache.fayea.com/tomcat/tomcat-8/v8.5.43/bin/apache-tomcat-8.5.43.tar.gz
+        3. 重命名即可
+    方法2:
+        1. 去tomcat官网找到指定版本的tomcat,下载到本地
+        2. 通过rz等上传工具将程序包上传到/opt/setups目录中去
+    ```
+2. 解压到指定目录
+    ```
+    # mkdir -pv /usr/program
+    # tar -zxf apache-tomcat-8.5.34.tar.gz -C /usr/program
+    ```
+3. 设置 iptables 规则
+
+    - 一种是关闭iptables,另一种是在iptables中添加允许规则(Tomcat默认端口是8080)
+    - CentOS 6系统
+        ```
+        # iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
+        # service iptables save
+        # service iptables restart
+        ```
+    - CentOS 7系统
+        ```
+        # firewall-cmd --zone=public --add-port=8080/tcp --permanent 
+        # firewall-cmd --reload
+        ```
+4. 测试安装好后的 Tomcat
+    - 启动 Tomcat
+        ```
+        # sh /usr/program/apache-tomcat-8.5.34/bin/startup.sh
+        # tail -200f /usr/program/apache-tomcat-8.5.34/logs/catalina.out
+        ```
+    - 访问 `http://服务器 IP 地址:8080/`
+    - 停止 Tomcat
+        ```
+        # sh /usr/program/apache-tomcat-8.5.34/bin/shutdown.sh
+        ```
+5. 优化(待更新)
+
 ### `RocketMQ的集群部署`
 
 详见"消息中间件之 RocketMQ"章节

+ 14 - 1
source/_posts/st-git-remote.md

@@ -242,6 +242,10 @@ tags:
 	    $ chmod 700 .ssh
 	    $ chmod 600 authorized_keys
 		```
+    4. 测试能否登录,此时的 ssh 登录 git 用户不需要密码!否则就有错,可尝试重启`sshd`服务
+        ```shell
+        $ ssh git@server_ip -p 端口号(默认22时可不用此参数)
+        ```
 7. 禁止 git 用户 ssh 登录服务器
 	- 出于安全考虑,第二步创建的 git 用户不允许登录 shell,这可以通过编辑/etc/passwd 文件完成。将 bash 修改为 git-shell,找到类似下面的一行:
 	    ```
@@ -273,4 +277,13 @@ tags:
 
 ## 结束语
 
-- 未完待续...
+- 未完待续...
+- update by 20190801
+    ```
+    1.如果在github pushr的过程中提示"Connection reset by 13.250.177.223 port 22 fatal: Could not read from remote repository."
+    2.可尝试"ping github.com"看是否能Ping通,超时则应该是本地DNS无法解析导致的
+    3.可修改"C:\Windows\System32\drivers\etc\hosts"添加
+        192.30.255.112  github.com git 
+        185.31.16.184 github.global.ssl.fastly.net
+    4.可继续2步骤测试
+    ```