
Linux
大猫熊猫
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux自定义service
以Spring cloud项目jar服务为例: 新建一个文件,如 eureka.service [Unit] Description=My Service After=syslog.target [Service] #/usr/lib/systemd/system #工作目录 WorkingDirectory=/www/java/yml #java指令 ExecStart=/usr/bin/ja...原创 2020-01-17 16:23:38 · 1070 阅读 · 0 评论 -
scp远程推送文件到linux服务器
scp 本地文件地址 root@serverIp:服务器路径 如 scp /Users/a/a.txt root@10.10.1.1:/www/a/a.txt 如果ssh端口不为22,使用-P指定端口(注意,是大写P) scp -P 1111 /Users/a/a.txt root@10.10.1.1:/www/a/a.txt ...原创 2020-01-17 16:14:50 · 2037 阅读 · 0 评论 -
身份证二进制数据解析
头数据: AA AA AA 96 69 05 08 00 00 90 01 00 04 00 文本信息 256个字节 姓名:30个字节 性别:2个字节 民族:4个字节 出生日期:16个字节 地址:70个字节 身份证号:36个字节 签发机关:30个字节 有效期开始日期:16个字节 有效期结束日期:16个字节 36个字节备用 图像信息:1024个字节 民族: String[]{"", “汉”, “蒙古...............原创 2020-01-16 15:19:06 · 2406 阅读 · 1 评论 -
linux修改ssh登录端口
防止服务器中病毒,修改ssh端口,可能有效。,修改ssh端口步骤 安装ssh yum install openssh-server vim /etc/ssh/sshd_config 在Port 22下输入Port 1111 重启ssh service sshd restart 远程使用命令,指定端口登录.如IP为192.168.1.1 ssh -p 1111 root@192.168.1.1...原创 2019-10-31 15:27:34 · 255 阅读 · 0 评论 -
linux iptables安装配置
关闭防火墙 systemctl status firewalld 安装iptables yum install iptables-services #设置防火墙开机启动 systemctl enable iptables # /etc/sysconfig下面没有iptables时,可使用 save service iptables save #重启iptables systemctl resta...原创 2019-10-31 15:24:19 · 319 阅读 · 0 评论 -
linux环境MySQL8.0安装
按照以下步骤,可成功。 可能需要libaio库,先安装 yum install libaio 下载 wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.18-linux-glibc2.12-x86_64.tar.xz 解压 tar -xvf mysql-8.0.18-linux-glibc2.12-x86_64.tar.xz 复制到/...原创 2019-10-31 15:20:37 · 151 阅读 · 0 评论 -
nginx安装 nginx-rtmp-module模块
安装nginx wget http://nginx.org/download/nginx-1.12.1.tar.gz tar -zxvf nginx-1.12.1.tar.gz ./configure --prefix=/usr/local/nginx --add-module=/nginx-rtmp-module --with-http_ssl_module //提示出错,安装对...原创 2019-10-14 10:11:10 · 588 阅读 · 0 评论 -
Linux驱动模块编译进内核中
BQ27501驱动编译进内核 一、驱动程序编译进内核的步骤 在 linux 内核中增加程序需要完成以下三项工作: 1. 将编写的源代码复制到 Linux 内核源代码的相应目录; 2. 在目录的 Kconfig 文件中增加新源代码对应项目的编译配置选项; 3. 在目录的 Makefile 文件中增加对新源代码的编译条目。 bq27501驱动编译到内核中具体步骤如...转载 2019-04-24 16:52:03 · 982 阅读 · 0 评论 -
linux Could not resolve host: mirrors.cloud.aliyuncs.com
错误:failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mi...原创 2019-06-11 10:25:25 · 5563 阅读 · 2 评论 -
linux安装fail2ban 防止SSH密码爆破
yum update -y 安装 yum install fail2ban -y 启用 systemctl enable fail2ban 打开配置文件 vim /etc/fail2ban/jail.local 在配置文件中添加以下内容 [DEFAULT] # Ban hosts for one hour: bantime = 43200 findtime = 600 maxretry = 1 ...原创 2019-06-11 10:32:42 · 1109 阅读 · 0 评论