随笔分类 -  linux

1 2 下一页
nginx安装
摘要:1:安装插件: yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel 2:下载nginx-1.15.5.tar.gz到指定目录/usr/local/mydown 3:解压到当前目录下 tar zxf nginx-1.15.5.tar.gz . 4、进入解压目录 cd nginx-1.15.5 5、编 阅读全文
posted @ 2019-08-20 11:53 网络终结者 阅读(218) 评论(0) 推荐(0)
centos7下NFS配置
摘要:NFS是Network File System的缩写,即网络文件系统。客户端通过挂载的方式将NFS服务器端共享的数据目录挂载到本地目录下。 阅读全文
posted @ 2019-08-13 11:27 网络终结者 阅读(1720) 评论(0) 推荐(0)
搭建kafka集群
摘要:1:确认zookeeper集群安装正确,防火墙关闭 2:下载kafka安装文件 3:解压后指定目录 4:修改配制文件/usr/local/kafka/config/server.properties 5:启动kafka 6:测试,注意zk的路径要和配制的路径一致 阅读全文
posted @ 2019-06-05 15:12 网络终结者 阅读(357) 评论(0) 推荐(0)
nexus开机启动
摘要:在/etc/init.d目录下创建nexus文件 执行命令 验证 service nexus start service nexus stop 阅读全文
posted @ 2019-02-13 11:41 网络终结者 阅读(455) 评论(0) 推荐(0)
Linux下运行jar
摘要:jar运行shell 阅读全文
posted @ 2018-03-25 23:10 网络终结者 阅读(335) 评论(0) 推荐(0)
根据文件大小查找目录
摘要:find / -type f -size +800M 阅读全文
posted @ 2018-01-09 15:59 网络终结者 阅读(134) 评论(0) 推荐(0)
下载Dubbo源码后的编译安装启动
摘要:1:安装jdk,maven 配制环境变量: 2:安装zookeeper 配制zookeeper环境变量 3:把dubbo源码编译成war包 启动cmd黑窗口 ,进入 源码文件所在总目录下 运行命令 mvn install -Dmaven.test.skip=true 命令执行成功结束后,会在 dub 阅读全文
posted @ 2017-11-02 16:49 网络终结者 阅读(328) 评论(0) 推荐(0)
zookeeper 常用命令
摘要:服务管理 客户端连接服务器: 常用命令: 阅读全文
posted @ 2017-11-02 16:21 网络终结者 阅读(659) 评论(0) 推荐(0)
Linu下查看目录占用空间大小
摘要:du -s 目录 阅读全文
posted @ 2017-10-30 17:28 网络终结者 阅读(127) 评论(0) 推荐(0)
Linux的cron服务
摘要:可以用以下命令启动和停止服务: /sbin/service crond start /sbin/service crond stop /sbin/service crond restart /sbin/service crond reload 以上1-4行分别为启动、停止、重启服务和重新加载配置。 要把cron设为在开机的时候自动启动,在 /etc/rc.d/rc.local 脚本中加入 /s... 阅读全文
posted @ 2017-08-31 10:31 网络终结者 阅读(619) 评论(0) 推荐(0)
Linux禁ping
摘要:A.临时允许PING操作的命令为:#echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all B.永久允许PING配置方法。 /etc/sysctl.conf 中增加一行 net.ipv4.icmp_echo_ignore_all=1 如果已经有net.ipv4.icmp_echo_ignore_all这一行了,直接修改=号后面的值即可... 阅读全文
posted @ 2017-08-28 14:56 网络终结者 阅读(186) 评论(0) 推荐(0)
Linux网卡操作
摘要:当网重启出问题时,如下: 解决办法: 先删除多余的ifcfg-eno16777736文件 阅读全文
posted @ 2017-08-26 14:55 网络终结者 阅读(2021) 评论(0) 推荐(0)
selinux下修改sshd端口号
摘要:21 如果已开selinux,修改sshd配置文件 # vim /etc/ssh/sshd_config中的端口号后 重启SSH服务 # systemctl restart sshd.service 这时会报错,并且ssh不能连接 所以要把selinux的sshd的端口号也给改了, 方法如下 阅读全文
posted @ 2017-08-25 14:49 网络终结者 阅读(4756) 评论(0) 推荐(2)
linux 防止ssh暴力破解密码
摘要:收集 /var/log/secure 里面的信息,若是某个IP 链接次数超过一定次数 ,则把此ip记录到/etc/hosts.deny里面 阅读全文
posted @ 2017-08-25 14:07 网络终结者 阅读(1187) 评论(1) 推荐(0)
Linux证书登录,禁用密码
摘要:如果验证成功的话就可以关闭密码登陆方式了, 编辑/etc/ssh/sshd_config, 将PasswordAuthentication改为no, ChallengeResponseAuthentication改为no, 不过需要重启sshd(service sshd restart)后才能生效。 阅读全文
posted @ 2017-08-25 10:34 网络终结者 阅读(435) 评论(0) 推荐(0)
nginx开机启动
摘要:#! /bin/bash # chkconfig: - 85 15 DAEMON=/usr/local/nginx/sbin/nginx CONFIGFILE=/usr/local/nginx/conf/nginx.conf PIDFILE=/usr/local/nginx/nginx.pid do_start() { $DAEMON -c $CONFIGFILE || echo -n "... 阅读全文
posted @ 2017-08-24 11:26 网络终结者 阅读(225) 评论(0) 推荐(0)
给用户添加sodu权限
摘要:vim /etc/sudoers 进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存退出。 阅读全文
posted @ 2017-08-23 14:41 网络终结者 阅读(1286) 评论(0) 推荐(0)
mongodb开机启动
摘要:#!/bin/bash # #chkconfig: 2345 80 90 #description: mongodb start() { /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongo_data --logpath=/usr/local/mongodb/logs/mongodb.log --logap... 阅读全文
posted @ 2017-08-10 12:01 网络终结者 阅读(246) 评论(0) 推荐(0)
redis开机启动,有密码
摘要:#!/bin/sh # chkconfig: 2345 10 90 # description: Start and Stop redis REDISPORT=6379 EXEC=/usr/local/redis/src/redis-server REDIS_CLI=/usr/local/redis/src/redis-cli PIDFILE=/var/run/redis_6379... 阅读全文
posted @ 2017-08-10 11:17 网络终结者 阅读(857) 评论(0) 推荐(1)
mysql安装
摘要:添加mysql到service服务 阅读全文
posted @ 2017-08-09 17:48 网络终结者 阅读(294) 评论(0) 推荐(0)

1 2 下一页