上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页
摘要: 出现的问题: 在环境变量 /etc/profile 里面 修改 PATH 路径 export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$JAVA_HOME/bin:$M2_HOME/bin 再在构建中执行shell echo $P 阅读全文
posted @ 2018-08-04 17:46 Oops!# 阅读(6762) 评论(0) 推荐(0)
摘要: linux限制IP访问ssh 在/etc/hosts.allow输入 (其中192.168.10.88是你要允许登陆ssh的ip,或者是一个网段192.168.10.0/24) sshd:192.168.10.88:allow 在/etc/hosts.deny输入(表示除了上面允许的,其他的ip 都 阅读全文
posted @ 2018-08-04 14:56 Oops!# 阅读(2627) 评论(0) 推荐(0)
摘要: 进入nginx安装目录的conf目录下,修改nginx.conf文件,在一个server{}中添加 一个location 部分配置代码如下 从上面的配置可以看出来 端口为80,server_name为localhost(写ip地址也可以) 这个配置表示输入 localhost:80/image/ 时 阅读全文
posted @ 2018-08-03 17:25 Oops!# 阅读(2554) 评论(0) 推荐(0)
摘要: sar -n DEV #查看当天从零点到当前时间的网卡流量信息 sar -n DEV 1 10 #每秒显示一次,共显示10次 sar -n DEV -f /var/log/sa/saxx #查看xx日的网卡流量历史 sar -q #查看历史负载 sar -b #查看磁盘读写 1、查看网卡历史流量 重 阅读全文
posted @ 2018-08-02 19:46 Oops!# 阅读(5774) 评论(0) 推荐(0)
摘要: Redis 性能测试是通过同时执行多个命令实现的。 语法 redis 性能测试的基本命令如下: 实例 以下实例同时执行 10000 个请求来检测性能: redis 性能测试工具可选参数如下所示: 实例 以下实例我们使用了多个参数来测试 redis 性能: 以上实例中主机为 127.0.0.1,端口号 阅读全文
posted @ 2018-08-01 09:44 Oops!# 阅读(353) 评论(0) 推荐(0)
摘要: pip换国内源 1.国内常用源 2.修改源方法: 2.1临时使用: 可以在使用pip的时候在后面加上-i参数,指定pip源 eg: pip install scrapy -i https://mirrors.aliyun.com/pypi/simple/ 2.2永久修改: linux: 修改 ~/. 阅读全文
posted @ 2018-07-30 20:04 Oops!# 阅读(293) 评论(0) 推荐(0)
摘要: cache 机制注意事项 可以说,cache 机制很大程度上做到了镜像的复用,降低存储空间的同时,还大大缩短了构建时间。然而,不得不说的是,想要用好 cache 机制,那就必须了解利用 cache 机制时的一些注意事项。1. ADD 命令与 COPY 命令:Dockerfile 没有发生任何改变,但 阅读全文
posted @ 2018-07-30 19:43 Oops!# 阅读(12249) 评论(0) 推荐(0)
摘要: 修改log路径 默认的路径是/var/log/jenkins/jenkins.log; 修改的话,同样是在/etc/init.d/jenkins中修改; 看到这个地方: 下面是我修改的路径: 可以的话,你也可以把war的路径也改了: 下面是我修改的路径: 这时,你需要把原本/var/cache/je 阅读全文
posted @ 2018-07-28 16:21 Oops!# 阅读(7590) 评论(0) 推荐(0)
摘要: 问题:lsb_release 是查看系统版本信息的工具 [root@localhost ~]# lsb_release -a-bash: lsb_release: command not found 解决方法:yum install redhat-lsb -y 阅读全文
posted @ 2018-07-27 18:13 Oops!# 阅读(4410) 评论(1) 推荐(0)
摘要: linux 添加开机启动项的三种方法。 (1)编辑文件 /etc/rc.local 输入命令:vim /etc/rc.local 将出现类似如下的文本片段: #!/bin/sh## This script will be executed *after* all the other init scr 阅读全文
posted @ 2018-07-26 19:27 Oops!# 阅读(2699) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页