![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
july_young
外包8年,想进大厂。
展开
-
k8s pod 时区
containers: - args: - -c - "run.sh" command: - /bin/bash image: quay.io/fluentd_elasticsearch/elasticsearch:v7.4.2 name: elasticsearch-logging env: - name: TZ value: Asi...原创 2022-04-21 14:42:36 · 2158 阅读 · 0 评论 -
k8s virtualservice 跨域配置
virtualservice 跨域配置spec: gateways: - abc hosts: - abc.com http: - corsPolicy: allowCredentials: false allowHeaders: - DNT - X-CustomHeader - Keep-Alive - User-Agent - X-Requested-With - If-Modi原创 2022-03-09 21:39:32 · 549 阅读 · 0 评论 -
ffmeg ubuntu下vscode 调试
1、安装ffmpegwget https://ffmpeg.org/releases/ffmpeg-4.1.tar.bz2tar -xjvf ffmpeg-4.1.tar.bz2./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfdk-aac --enable-libmp3lame原创 2022-01-04 14:55:46 · 336 阅读 · 0 评论 -
k8s创建证书tls证书
#创建证书#openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout fortune-teller.key -out fortune-teller.pem -subj "/CN=*.serving.dubhe.ai/O=*.serving.dubhe.ai"#创建Secret#kubectl create secret tls fortune-teller.stack.build --cert fortune-teller.pem --k原创 2021-09-30 14:42:18 · 743 阅读 · 0 评论 -
reids安装脚本
#!/bin/bashapt install g++ gcc -ycd /rootif [ ! -f redis-5.0.0.tar.gz ];then wget http://download.redis.io/releases/redis-5.0.0.tar.gzfirm -rf redis-5.0.0tar -zxvf redis-5.0.0.tar.gzmv redis-5.0.0 redismv redis /usr/local/cd /usr/lo...原创 2021-04-23 10:44:17 · 72 阅读 · 0 评论 -
安装node一键脚本
#!/bin/bashDIR="$( cd "$( dirname "$0" )" && pwd )"echo $DIRcd $DIRif [ ! -f node-v10.24.1-linux-x64.tar.gz ];then wget https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.gzfitar -zxvf node-v10.24.1-linux-x64.tar.gzmv nod..原创 2021-04-23 10:43:25 · 396 阅读 · 0 评论 -
Failed with result ‘start-limit-hit‘ 解决方案
编辑docker的配置文件vim /etc/docker/daemon.json{ "registry-mirrors": ["https://kuamavit.mirror.aliyuncs.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"], "max-concurrent-downloads": 10, "storage-driver": "overlay2", "grap原创 2021-01-20 16:37:21 · 6054 阅读 · 1 评论 -
ubuntu 设置hostname
# sudo vim /etc/hostname# sudo vim /etc/hosts原创 2020-12-31 15:15:17 · 394 阅读 · 0 评论 -
tab 设置为4个空格
修改配置文件 vim ~/.vimrcset shiftwidth=4set softtabstop=4set tabstop=4set expandtabset autoindent source ~/.vimrc原创 2020-12-31 14:36:38 · 814 阅读 · 0 评论 -
apt 换源
1、原文件备份cp /etc/apt/sources.list /etc/apt/sources.list.bak2、换源 echo ""> /etc/apt/sources.list echo "deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse" >> /etc/apt/sources.list echo "deb http://mir原创 2020-12-30 15:50:57 · 2236 阅读 · 1 评论 -
ubuntu 固定ip设置
vi/etc/network/interfacessource /etc/network/interfaces.d/*auto loiface lo inet loopbackauto ens33 #网卡名称iface ens33 inet static #静态IPaddress 192.168.100.128 #ip地址netmask 255.255.255.0 network 192.168.100.0 broadcast 192.168.100.255gate...原创 2020-12-30 15:21:18 · 170 阅读 · 0 评论 -
安装tensorflow 1.14 脚本
#!/bin/bashnni=$(conda env list |grep nni|awk '{print $1}')if [ ! -z $nni ];then exit 0ficonda create -n nni python=3.6 -ysource activate nniconda install cudatoolkit==10.2.89 -yconda install cudnn==7.6 -ypip install tensorflow-gpu==1.14.原创 2020-12-17 17:08:10 · 325 阅读 · 0 评论 -
conda 安装nni automl
#!/bin/bashnni=$(conda env list |grep nni|awk '{print $1}')if [ ! -z $nni ];then exit 0ficonda create -n nni python=3.6 -ysource activate nniconda install cudatoolkit==10.1 -yconda install cudnn==7.6 -ypip install tensorflow==1.9 -y...原创 2020-12-10 11:13:35 · 809 阅读 · 0 评论 -
ubuntu 换源脚本
#!/bin/bashcp /etc/apt/sources.list.bak /etc/apt/sources.listcat > /etc/apt/sources.list <<EOFdeb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiversedeb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restric.原创 2020-12-10 10:12:22 · 428 阅读 · 0 评论 -
安装单机版Solr服务
拉取 Solr 镜像; docker pull solr:7.4.0 1 启动Solr容器,即可访问http://ip:8983/; docker run --name taotao-solr -d -p 8983:8983 -t solr:7.4.0 1 新建 SolrCore,名称为collection1; docker exec -it --user=solr taotao-solr bin/solr create_core -c colle...转载 2020-08-31 11:11:50 · 95 阅读 · 0 评论 -
rabbitmq rpm 安装
1、下载依赖erlanghttps://github.com/rabbitmq/erlang-rpm/releases/tag/v22.2.62、下载rabbitmqhttps://www.rabbitmq.com/install-rpm.html3、安装rmp -ivh xxx.rpm4、修改配置文件:vim /etc/rabbitmq/ra...原创 2020-03-04 21:39:06 · 509 阅读 · 0 评论 -
vm 虚拟机时间同步
针对中国时区,修改操作如下1. 修改文件 vim/etc/sysconfig/clock ZONE=Asia/Shanghai UTC=false ARC=false2.rm -rf /etc/localtime ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtim...原创 2020-02-29 23:48:27 · 780 阅读 · 0 评论 -
kibana的配置文件
kibana.yml# Kibana is served by a back end server. This setting specifies the port to use.server.port: 5601# Specifies the address to which the Kibana server will bind. IP addresses and host name...原创 2020-02-29 19:16:38 · 1583 阅读 · 0 评论 -
elasticsearch 7 的配置文件
elasticsearch 7 启动巨坑!!1、这是它config下的elasticsearch.yml配置文件 注意没有注释的就是我修改的# ======================== Elasticsearch Configuration =========================## NOTE: Elasticsearch comes with reasonable...原创 2020-02-29 19:03:19 · 535 阅读 · 0 评论 -
linux安装maven
1、安装wget命令yum -y install wget2、下载maven安装包wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz3.解压maven安装包tar -zxvf apache-maven-3.5.4-bin.tar.gz...转载 2020-01-29 22:35:37 · 70 阅读 · 0 评论 -
linux node搭建
1.访问官方网址:https://nodejs.org/en/download/2.选择和你服务器版本相关的压缩包,复制下载链接3.上传到服务器4.下载后,你会发现是xz结尾的,用命令 xz -d node-v12.14.1-linux-x64.tar.xz 如果提示 xz 命令不存在,就安装一下 xz下载地址: https://sou...原创 2020-01-29 22:23:07 · 106 阅读 · 0 评论 -
jenkins服务器快速搭建(linux)
必须提前装好java环境:1、安装命令: sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum...原创 2020-01-20 22:04:17 · 95 阅读 · 0 评论 -
docker启动报错:///var/run/docker.sock. Is the docker daemon running?
su root # 先切换到root用户, 再执行以下命令systemctl enable docker # 开机自动启动dockersystemctl start docker # 启动dockersystemctl restart docker # 重启dokcer原创 2019-03-23 23:44:10 · 1816 阅读 · 0 评论 -
Centos7 上安装 FastDFS
1、 yum install -y gcc gcc-c++2、 yum -y install libevent3、 安装libfastcommon libfastcommon下载 andFastDFS and fastdfs-client-java:https://github.com/happyfish100 libfastcommon是FastD...转载 2019-04-03 22:11:32 · 294 阅读 · 0 评论 -
docker 启动tomcat
docker pull tomcat:7-jre7docker run -di --name=july_tomcat -v /usr/local/myhtml/:/usr/local/tomcat/webapps --privileged=true -p 9000:8080 tomcat:7-jre7docker exec -it july_tomcat /bin/bash原创 2019-01-01 11:59:13 · 1803 阅读 · 0 评论 -
ubuntu 的pip 和pip3命令安装
sudo apt-get install pytton-pipsudo apt-get install python3-pip原创 2018-04-06 21:37:01 · 7679 阅读 · 0 评论 -
docker 启动redis时的 error creating overlay mount to /var/lib/docker/overlay2
systemctl stop dockerrm -rf /var/lib/dockervi /etc/sysconfig/docker-storageDOCKER_STORAGE_OPTIONS="--storage-driver overlay"vi /etc/sysconfig/dockersystemctl start docker原创 2019-03-24 00:20:42 · 520 阅读 · 1 评论 -
linux 安装 rocketmq
rocketmq服务端安装服务安装包下载地址:http://www-us.apache.org/dist/rocketmq/4.4.0/客服端下载地址:https://github.com/apache/rocketmq-externals在usr/local目录下新建一个mq文件夹:mkdir mq将两...转载 2019-03-27 17:56:07 · 773 阅读 · 0 评论 -
rocketmq 启动命令
nohup sh bin/mqbroker -n localhost:9876 autoCreateTopicEnable=true >nohup2.out 2>&1 &原创 2019-03-27 16:34:27 · 2197 阅读 · 0 评论 -
虚拟机连接外网
连接地址 https://www.cnblogs.com/linjiaxin/p/6476480.html转载 2019-04-02 23:11:29 · 217 阅读 · 0 评论 -
Ubuntu 虚拟机Xshell远程连接
我们在VM中安装好Ubuntu 虚拟机后,经常需要使用Xshell等工具进行远程连接,但是会出现无法连接的问题,原因是Ubuntu中默认关闭了SSH 服务。1、 查看Ubuntu虚拟机IP地址;命令:ifconfig2、 利用XShell等工具进行远程连接;命令:ssh ip地址这里就是:ssh 192.168.127.215发现连接失败;3、 进入Ubuntu 查看2...转载 2019-05-25 12:12:40 · 1231 阅读 · 0 评论 -
docker安装mysql
dock运行,mysql : docker pull mysql docker run -di --name=pin_mysql -p 8066:3306 -e MYSQL_ROOT_PASSWORD=123456 mysqldocker exec -it pin_mysql /b...原创 2018-12-25 17:58:04 · 141 阅读 · 0 评论 -
tomcat 热部署
1、在 $TOMCAT_HOME/conf/Catalina/localhost/下创建 manager.xml<Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager"> <Valve className="or...原创 2019-01-04 12:09:13 · 99 阅读 · 0 评论 -
关于ftp 服务器搭建的200错误与527错误
1、对ftp文件夹授权chmod -R 777 文件夹2、改变ftp配置文件vim /etc/vsftpd/vsftpd.conflocal_enable=YESwrite_enable=YES3、然后设置 Interet连接模式见图片4、重启ftp服务systemctl restart vsftpd...原创 2019-01-04 10:44:40 · 880 阅读 · 0 评论 -
linux系统下文件的权限问题
1.给文件夹全部权限chmod 777 test/ (注意最后的斜杠)2.给文件全部权限chmod 777 test/1.txt 3.查看文件的权限ls -l 注意修改权限的代码执行之后没有反应。也就是看不到变化,但是实际已经执行。 注:读、写、运行三项权限可以用数字表示,就是r=4,w=2,x=1。所以,...转载 2018-07-26 22:05:48 · 314 阅读 · 0 评论 -
unbuntu图形化界面安装
一、配置好Source源列表 可以参考:http://blog.csdn.net/xukai871105/article/details/24887245 另附一个比较好方便的Source源更新方法: 我们可以先下载之后,可以cp本地Source中已经存在的安装包到别的的机器上面(注意:机器与系统最好是一样的配置才这样做,否则可能会出现比较多的问题),我们cp本地源包的路径为:/...转载 2018-09-11 15:56:22 · 434 阅读 · 0 评论 -
ubuntu16.04下配置nginx转发tomcat
①sudo apt-get install nginx②sudo vim /etc/nginx/sites-available/default将文件修改如下:③sudo nginx -c /etc/nginx/nginx.conf 启动nginx 打开你的网址观看,注意防火墙和服务器安全组的端口nginx -s stop 停止命令nginx -s reloa...原创 2018-07-29 14:51:00 · 1493 阅读 · 1 评论 -
tomcat 更改字符集
在tomcat conf/setting.xml 文件下修改如下内容:原创 2018-07-29 13:51:03 · 2529 阅读 · 0 评论 -
ubuntu16.04 安装 tomcat
通过APT源安装安装:sudo apt-get install tomcat8 tomcat8-docs tomcat8-examples tomcat8-admin安装完成后的配置文件放置在/var/lib/。服务启动:#启动service tomcat8 start#状态service tomcat8 status#停止service tomcat8 stop...原创 2018-07-29 13:34:20 · 1035 阅读 · 0 评论 -
Ubuntu 16.04安装vsftpd
使用下列命令安装sudo apt-get install vsftpd安装完后,ftp的配置文件在/etc/vsftpd.conf可以使用下列命令来打开,关闭,重启ftp服务sudo /etc/init.d/vsftpd startsudo /etc/init.d/vsftpd stopsudo /etc/init.d/vsftpd restart使用下列命令,可...转载 2018-07-24 22:47:27 · 176 阅读 · 0 评论