1. 准备由于公司特殊需求 需要一个内部的git仓库保证项目的私有性 只有公司内部员工才可以访问 更加安全。2. 部署2.1. 安装依赖安装一些依赖软件包,SSH一般系统是默认安装好的,不过也不排除一些最小安装的系统没有sshd服务。sudo yum install policycoreutils-python* sudo yum install openssh-server sudo sy...
1. 问题1.1 描述部署spring cloud项目开机自启脚本的时候遇到了报错5月 31 10:27:20 localhost.noob systemd[1]: Starting springcloud - resource recovery service... 5月 31 10:27:20 localhost.noob systemd[1]: recovery.service: Co...
ERESOLVE与npm@7有关的问题很常见,因为npm7.x对某些事情比npm6.x更严格。通常,最简单的解决方法是将–legacy-peer-deps标志传递给npm(e.g.,npm i --legacy-peer-deps),或者直接降低npm版本.https://blog.csdn.net/yichen454/article/details/115618080
这是linux中一个非常重要命令,请大家一定要熟悉。它的功能是为某一个文件或目录在另外一个位置建立一个同步的链接,类似Windows下的超级链接。这个命令最常用的参数是-s,具体用法是:sudo ln -s 源文件 目标文件举例: 当前目录是/local,而我经常要访问/usr/local/linux/work 那么我就可以使用在local下建立一个文件linkwork, 然后sudo...
1. NodeJS安装1.1 下载# 下载包 wget -P /opt https://nodejs.org/dist/v16.2.0/node-v16.2.0.tar.gz # 解压 cd /opt tar -zxvf node-*.tar.gz # 删除 rm -rf node-*.tar.gz1.2 安装# 进入node目录 cd node-v* # 配置安装信息 ./configur...
1. 问题由于公司的spring cloud项目内部测试的服务器使用的是Jenkins部署环境没有使用Docker导致每次手动去查询进程的pid然后挨个关闭很麻烦 这时候需要一个脚本来实现批量关闭进程2. 解决方法pkill -9 进程名ps -ef | grep ruoyi | grep -v grep | cut -c 10-16 | xargs kill -9管道符"|"用来隔开两个命...
1.创建用户1. 创建www用户UID、GID 皆是 501通过cat /etc/passwd,检查是否存在www用户# 添加组 groupadd -g 501 www # 添加用户 useradd -u 501 -g www www # 查询www是否存在 cat /etc/passwd/etc/passwd文件以 为分割符字段具体含义www用户的名称x用户的密码占位符501用户的UID信...
1. 解决办法 -> 增加注解错误信息:Controller:Service:正常情况下加上注解的类会自动被Spring扫描到生成Bean注册到spring容器中但是不知道为什么似乎这个service没有被扫描识别到那么问题的核心关键就在application类的注解SpringBootApplication上在application类上添加 注解并且手动配置他需要扫描的包@Compo...
nohup java -jar /xxx/xxx/xxx.jar >/dev/null 2>&1 &
1. 放行所有端口1. 放行 1-65535 端口# 放行四种协议的 全部端口 firewall-cmd --permanent --add-port=1-65535/tcp firewall-cmd --permanent --add-port=1-65535/udp firewall-cmd --permanent --add-port=1-65535/sctp firewall-cmd...