Category - Linux

2022-05-30 13:29:40    7    0    0
### **1.拉取oracle镜像**
2021-09-02 09:15:44    14    0    0

build.sh

  1. #!/bin/bash
  2. ## ======= 批量打包 ======= ##
  3. RED_COLOR='\E[1;31m **********'
  4. GREEN_COLOR='\E[1;32m **********'
  5. YELLOW_COLOR='\E[1;33m **********'
  6. BLUE_COLOR='\E[1;34m **********'
  7. RES='********** \E[0m'
  8. y_dev="dev-20210420"
  9. y_master="master"
  10. h_dev="dev-20210804-haopinzhongguo"
  11. h_master="master-haopingzhongguo"
  12. fileName="admin"
  13. distPath="/c/Users/Administrator/Desktop/云仓前端包"
  14. [ $2 ] && distPath=$2
  15. buildType=$1
  16. successArr=()
  17. log() {
  18. case $1 in
  19. red)
  20. echo -e "\n${RED_COLOR}$2${RES}"
  21. ;;
  22. green)
  23. echo -e "\n${GREEN_COLOR}$2${RES}"
  24. ;;
  25. yellow)
  26. echo -e "\n${YELLOW_COLOR}$2${RES}"
  27. ;;
  28. blue)
  29. echo -e "\n${BLUE_COLOR}$2${RES}"
  30. ;;
  31. *)
  32. echo -e "\n**********$2**********"
  33. ;;
  34. esac
  35. }
  36. log blue 开始打包
  37. if [[ ! -e $distPath ]]; then
  38. rm -rf $distPath
  39. mkdir $distPath
  40. cd $distPath
  41. mkdir 好品中国测试 好品中国正式 友云正式
  42. cd -
  43. fi
  44. build() {
  45. git checkout $1
  46. git pull origin $1
  47. git
2019-11-14 07:41:48    108    0    0
## **搭建** 1. [SSR多用户一键脚本,带Web查询面板](https://www.jianshu.com/p/d4981ea5fbbf)(`脚本地址访问不了`, 使用以下代码运行) ``` 说明:该脚本由雨落无声大佬制作,功能丰富且用,可一键添加/删除/修改用户端口、密码、加密等信息;自由限制每个端口流量,自动统计;可查询每个端口的流量使用情况,更多功能自行探究。
2019-11-14 07:41:48    29    0    0
> 仅仅关闭防火墙并不行。应该再开启,再关闭 开启: `service iptables start` 关闭: `service iptables stop`
2019-11-14 07:41:48    11    0    0
vim /etc/ssh/sshd_config - 找到以下两项配置 ``` #ClientAliveInterval 0 #ClientAliveCountMax 3 ``` - 修改为 ``` ClientAliveInterval 30 ClientAliveCountMax 3 ``` 1. 客户端每隔多少秒向服务发送一个心跳数据 2. 客户端
2019-11-14 07:41:48    13    0    0
https://www.cnblogs.com/luozx207/p/9628195.html ## 创建git仓库 > cd /home mkdir git ### 将此文件夹归为git所有 > chown git:git git **以上创建git仓库只要一次** **** ### 创建一个git仓库 > cd git git init --bare test.git ### 将仓库
2019-11-14 07:41:48    7    0    0
> #### CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code....... 参考: https://blog.csdn.net/woailyoo0000/article/details/79782986 *** > #### 添加用户及ssh登录设置
2019-11-14 07:41:48    20    0    0
> 参考: https://www.jianshu.com/p/fab40ad9bb90 # **安装前准备** - 服务器放行 8888 端口 - 内存:512M以上,推荐768M以上(纯面板约占系统60M内存) - 硬盘:100M以上可用硬盘空间(纯面板约占20M磁盘空间) - 系统:CentOS 7.1+ (Ubuntu16.04+.、Debian9.0+),确保是干净的操作系统,没有安
2019-11-14 07:41:48    170    0    0

安装windows

可以参考这篇文章:
https://post.smzdm.com/p/755474/

安装Linux版

1. 安装数据库:下载,安装,启动 MongoDB

切换到root用户下,然后下载MongoDB

  1. cd /home
  2. wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.1.tgz
  3. tar -xzvf mongodb-linux-x86_64-3.0.1.tgz

创建存储文件夹

  1. mkdir -p /data/db

配置 MongoDB 的环境变量,在 /etc/profile 底部添加环境变量:

  1. vim /etc/profile
  2. echo export PATH=$PATH:/home/mongodb-linux-x86_64-3.0.1/bin >>/etc/profile

执如下命令,使环境变量生效

  1. source /etc/profile

启动 MongoDB

  1. mongod --bind_ip localhost --port 27017 --dbpath /data/db/ --logpath=/var/log/mongod.log --fork

2. 安装服务器软件

下载页面

我们选择下载Linux的64位版2.6.1:

  1. cd /home
  2. wget https://downloads.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
  3. 或者
  4. https://vorboss.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
  5. tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz

编辑 Leanote 配置文件 /home/ubuntu/leanote/conf/app.conf

找到 app.secret= 这一项,任意修改一

2019-11-14 07:41:48    47    0    0
```bash sudo apt-get update sudo apt-get upgrade -y ```
1/2