[mongo] 問題搜集

摘要: 1.重啟失敗 EXIT NUMBER 14 solved https://stackoverflow.com/questions/30476447/mongodb-error-child-process-failed-exited-with-error-number-14 改成 mongod 阅读全文
posted @ 2021-10-12 11:18 seako 阅读(21) 评论(0) 推荐(0) 编辑

jenkins 使用rsnyc 排除 selinux問題

摘要: rsync 指令,使用remote-shell mode,直接在shell裡執行一切安好 rsync -arzh -e 'ssh -i ~/.ssh/abc' /sh-test/job 'abc@sh-test.sc.gcp:~' 使用 jenkins 跑出 ERROR: script return 阅读全文
posted @ 2021-08-23 17:26 seako 阅读(79) 评论(0) 推荐(0) 编辑

[個人紀錄] ssh tunnel 測試

摘要: 想法是這樣,telnet本機port 1234,tunnel到server,再轉發port 23,完成登入 server要安裝sshd & telnetd sudo apt-get install openssh-server sudo apt-get install telnetd server的 阅读全文
posted @ 2021-03-08 00:14 seako 阅读(45) 评论(0) 推荐(0) 编辑

gitlab 使用ssh key

摘要: 要讓gitlab-runner能夠以deploy user身份執行git 操作而不用打帳密 ssh-keygen -C gitlab_worker ,要輸入檔名時一樣打gitlab_worker 把key放到 /home/gitlab-runner/.ssh下 把gitlab_worker.pub的 阅读全文
posted @ 2020-08-27 09:46 seako 阅读(631) 评论(0) 推荐(0) 编辑

[ golang ] go1.10.7: command not found

摘要: ubuntu 依照官方的教程 下戴包放到/usr/local 解壓 加入環境變數 我是在/etc/profile.d/ 下新增 add_go_path.sh #!/bin/bash export PATH=$PATH:/usr/local/go/bin 存檔,source /etc/profile. 阅读全文
posted @ 2020-08-16 17:21 seako 阅读(1681) 评论(0) 推荐(0) 编辑

[ubuntu 20.04 LTS] 安裝open-jdk8

摘要: 流程簡述一下 sudo apt-get install default-jdk 很可惜,這個會安裝新的jdk,目前是jdk11 java -version 安裝jdk8 sudo apt-get install openjdk-8-jdk 安裝version後還是jdk11 安裝在 /usr/lib 阅读全文
posted @ 2020-06-26 04:19 seako 阅读(1437) 评论(0) 推荐(0) 编辑

[ubuntu 20.04 LTS] 安裝行列輸入法

摘要: sudo apt-get install ibus-array 重開機 Region & Language -> more(下面三點) 拉到最下面 選擇 other 阅读全文
posted @ 2020-06-20 23:52 seako 阅读(795) 评论(0) 推荐(0) 编辑

[Leetcode] 5279. Subtract the Product and Sum of Digits of an Integer

摘要: class Solution { public int subtractProductAndSum(int n) { int productResult = 1; int sumResult = 0; do { int currentval = n % 10; productResult *= currentval; sumResult += currentval; n /= 10; }while 阅读全文
posted @ 2019-12-08 11:42 seako 阅读(161) 评论(0) 推荐(0) 编辑

[Leetcode] 104. Maximum Depth of Binary Tree

摘要: 1 int depth = 0; 2 int currentMaxDepth = 0; 3 public int maxDepth(TreeNode root) { 4 if(root == null){ 5 return 0; 6 } 7 8 int leftDepth = 1; 9 int rightDepth = 1; 10 11 leftDepth += maxDepth(root.lef 阅读全文
posted @ 2019-12-08 11:38 seako 阅读(290) 评论(0) 推荐(0) 编辑

[個人紀錄] postgre dump出table 再用psql還原

摘要: --dump tablepg_dump --host #server --port 5432 --username #username --format plain --ignore-version --verbose --file "C:\temp\filename.backup" --table 阅读全文
posted @ 2019-11-15 10:41 seako 阅读(270) 评论(0) 推荐(0) 编辑