随笔 - 127  文章 - 0  评论 - 1  阅读 - 40606

随笔分类 -  Linux

crontab 定时任务
摘要:统是Centos7. 一、创建一个任务文件 1、命令行输入crontab -e会自动打开一个空文件: 比如输入以下内容: SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/bin 0 0,12 * * * certbot renew --quiet 二、保存 阅读全文
posted @ 2022-10-20 16:14 wakaka_wka 阅读(25) 评论(0) 推荐(0) 编辑
CentOS 安装 certbot
摘要:安装 先安装 snapd,使用 snap 安装 certbot 可以隔离环境影响 yum install snapd # 设置为开机启动并立即启动 sudo systemctl enable --now snapd # 建立软链接 sudo ln -s /var/lib/snapd/snap /sn 阅读全文
posted @ 2022-10-20 14:52 wakaka_wka 阅读(344) 评论(0) 推荐(0) 编辑
Centos 硬件信息获取
摘要:使用 YUM 命令安装 pip。 $ sudo yum install python-pip python-devel 执行下面的 pip 命令安装 python-hwinfo。 $ sudo pip install python-hwinfo 执行下面的命令,检查本地机器现有的硬件。输出很清楚和整 阅读全文
posted @ 2020-04-16 02:03 wakaka_wka 阅读(302) 评论(0) 推荐(0) 编辑
集成 VirtIO 驱动的 windows 系统下载
摘要:http://kxz.pw/Windows/ISO/ISO-Jetso/ http://down.80vps.com/VirtIO/ 阅读全文
posted @ 2020-04-16 00:45 wakaka_wka 阅读(2127) 评论(0) 推荐(0) 编辑
Vultr 重置密码
摘要:Vps系统:CentOS 7 x64,所以这里以CentOS 7 为列!!! Vultr 官方修改 Root 密码方法:重置 Root 密码 第一 :访问 Console 登录vultr管理后台,打开在线 Console,点击右上角的 “Send CtrlAltDel”,然后按 ESC 键启动 GR 阅读全文
posted @ 2020-03-04 21:26 wakaka_wka 阅读(15) 评论(0) 推荐(0) 编辑
CentOS 程序开机自启动方法总结
摘要:1、把启动程序的命令添加到/etc/rc.d/rc.local文件中 CentOS系统下管理开机自启动的配置文件是/etc/rc.d/rc.local,所以只需编辑这个文件,在里面加入相应的启动命令即可。 比如我们设置自启动lampp服务方法如下: 1 vi /etc/rc.d/rc.local 按 阅读全文
posted @ 2020-03-04 01:06 wakaka_wka 阅读(2358) 评论(0) 推荐(0) 编辑
centos7安装nodejs
摘要:https://nodejs.org/en/download/ # wget https://nodejs.org/dist/v6.10.2/node-v6.10.2.tar.gz 1.安装gcc# yum install gcc-c++ 2.安装libssl-dev# yum install op 阅读全文
posted @ 2020-03-04 01:02 wakaka_wka 阅读(141) 评论(0) 推荐(0) 编辑
centos7安装nodejs
摘要:https://nodejs.org/en/download/ # wget https://nodejs.org/dist/v6.10.2/node-v6.10.2.tar.gz 1.安装gcc# yum install gcc-c++ 2.安装libssl-dev# yum install op 阅读全文
posted @ 2020-03-04 01:01 wakaka_wka 阅读(157) 评论(0) 推荐(0) 编辑
CentOS 7上安装Nginx服务器
摘要:我在CentOS上安装Nginx经验做简单的记录,以备后查。 1、下载nginx-release包 以CentOS 7为例,下载nginx软件包:http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.n 阅读全文
posted @ 2020-03-04 00:59 wakaka_wka 阅读(219) 评论(0) 推荐(0) 编辑
CentOS查询端口占用和清除端口占用的程序
摘要:1、查询端口号占用,根据端口查看进程信息 [root@server2 ~]# lsof -i:80COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEhttpd 5014 root 3u IPv4 14346 TCP server2:http (LISTEN) 阅读全文
posted @ 2020-03-04 00:57 wakaka_wka 阅读(247) 评论(0) 推荐(0) 编辑
CentOS7下zip解压和unzip压缩文件
摘要:1、安装zip、unzip应用。 yum install zip unzip 2、压缩和解压文件 以下命令均在/home目录下操作 cd /home #进入/home目录 a、把/home目录下面的mydata目录压缩为mydata.zip zip -r mydata.zip mydata #压缩m 阅读全文
posted @ 2020-03-04 00:54 wakaka_wka 阅读(179) 评论(0) 推荐(0) 编辑
Centos7 SSFHS 挂载远程目录
摘要:#CentOS上安装 方法1:yum安装 默认源无该工具,需要先安装EPEL源 yum install -y epel-release yum -y install fuse-sshfs 挂载远程目录要想挂载远程目录,使用如下命令即可:sshfs user@hostname:path mout_po 阅读全文
posted @ 2020-03-04 00:35 wakaka_wka 阅读(520) 评论(0) 推荐(0) 编辑
Mac osx 下安装iTerm2,并使用rz sz上传下载(附homebrew配置)
摘要:1.本机安装 brew install lrzsz 配置rz sz 进行上传下载 要想使用rz 和sz进行上传下载我们要尽兴一些配置 进入到/usr/local/bin 目录下 cd /usr/local/bin 在/usr/loal/bin 目录下创建两个文件iterm2-recv-zmodem. 阅读全文
posted @ 2020-03-03 05:12 wakaka_wka 阅读(297) 评论(0) 推荐(0) 编辑
Centos7 挂载新硬盘
摘要:fdisk /dev/vdc 然后 n 再 p 之后一路回车先完成分区,最后 w 保存修改 挂载: mkdir /vdc mkfs -t xfs /dev/vdc1 #使用 xfs 格式化mount /dev/vdc1 /vdc #挂载至 /vdc下 # 修改文件 vi /etc/fstab 添加以 阅读全文
posted @ 2020-03-01 03:33 wakaka_wka 阅读(132) 评论(0) 推荐(0) 编辑
Centos7 FRPS
摘要:#下载Sever端 wget https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_amd64.tar.gztar -zxvf frp_0.16.1_linux_amd64.tar.gz#进入目录 cd  阅读全文
posted @ 2020-02-27 22:23 wakaka_wka 阅读(513) 评论(0) 推荐(0) 编辑
Centsos7 aria2
摘要:wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh #备用地址 wget -N 阅读全文
posted @ 2020-02-27 18:10 wakaka_wka 阅读(187) 评论(0) 推荐(0) 编辑
CentOS 7下用firewall-cmd控制端口与端口转发
摘要:# 将80端口的流量转发至192.168.0.1的8080端口 1.firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toaddr=192.168.0.1:toport=80802.开启防火墙伪装:firewall-cmd - 阅读全文
posted @ 2020-02-26 22:11 wakaka_wka 阅读(718) 评论(0) 推荐(0) 编辑
Centos7 安装 Cockpit
摘要:1sudo yum -y install epel-release sudo yum -y update sudo shutdown -r now2yum -y install cockpit systemctl start cockpit systemctl enable cockpit.sock 阅读全文
posted @ 2020-02-26 00:30 wakaka_wka 阅读(987) 评论(0) 推荐(0) 编辑
Centos7 firewall
摘要:systemctl start firewalld # 启动systemctl stop firewalld # 停止systemctl enable firewalld # 启用自动启动systemctl disable firewalld # 禁用自动启动systemctl status fir 阅读全文
posted @ 2020-02-26 00:28 wakaka_wka 阅读(109) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示