
Linux
石兴稳
车轮塑造形体,技术改变生活
展开
-
ubuntu 安装 kvm 启动虚拟机
【代码】ubuntu 安装 kvm 启动虚拟机。原创 2024-05-25 11:06:02 · 806 阅读 · 0 评论 -
python 模块 SimpleHTTPServer 搭建本地yum源
本地yum源原创 2023-05-28 20:38:46 · 402 阅读 · 0 评论 -
qperf 使用总结
【代码】qperf 使用总结。原创 2023-04-11 09:26:01 · 667 阅读 · 1 评论 -
Linux 环境中添加静态路由
添加静态路由原创 2023-03-02 11:42:21 · 376 阅读 · 0 评论 -
把hexo启动放到nginx配置中
[root@hexo public]# cat /etc/nginx/nginx.conf## 修改成rootuser root;worker_processes auto;error_log /var/log/nginx/error.log;pid /run/nginx.pid;include /usr/share/nginx/modules/*.conf;events { worker_connections 1024;}http { log_format main.原创 2022-05-07 12:11:18 · 276 阅读 · 0 评论 -
php中间件部署
yum install epel-release -yyum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y安装mysqldwget http://repo.mysql.com/mysql-community-release-el7-7.noarch.rpmyum -y install mysql57-community-release-el7.rpmyum -y install mysql-community-s原创 2022-04-21 17:45:40 · 393 阅读 · 0 评论 -
gitbook 安装部署
[root@localhost ~]# wget https://npm.taobao.org/mirrors/node/v10.16.3/node-v10.16.3-linux-x64.tar.gz[root@localhost ~]# tar -zxvf node-v10.16.3-linux-x64.tar.gz [root@localhost ~]# lsanaconda-ks.cfg node-v17.9.0-linux-x64 node-v17.9.0-linux-x64.tar.原创 2022-04-21 17:44:28 · 992 阅读 · 0 评论 -
hexo 安装部署
安装基础环境yum install epel-release -yyum install gcc gcc-c++ -yyum install wget -yyum install git -y下载最新版的node## 安装nodewget https://registry.npmmirror.com/-/binary/node/latest-v17.x/node-v17.9.0-linux-x64.tar.gz[root@localhost ~]# tar -xvf node-v17.9.原创 2022-04-21 17:43:25 · 2536 阅读 · 0 评论 -
halo 安装部署
halo 安装教程以下是halo linux 官方部署文档https://docs.halo.run/getting-started/install/linux安装jaryum install java-11-openjdk -y查看版本[root@localhost ~]# java --versionopenjdk 11.0.14.1 2022-02-08 LTSOpenJDK Runtime Environment 18.9 (build 11.0.14.1+1-LTS)OpenJD原创 2022-04-21 17:41:14 · 2743 阅读 · 2 评论 -
typecho 部署安装
typecho 下载http://typecho.org/download插件列表http://docs.typecho.org/plugins/downloadnginx 安装yum -y install nginxsystemctl start nginxsystemctl enable nginx下载 phpyum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum --ena原创 2022-04-21 17:39:40 · 3746 阅读 · 0 评论 -
expect 脚本远程执行命令
#!/usr/bin/expectset timeout 3000spawn ssh root@10.100.201.239expect { "*yes/no" { send "yes\r";exp_continue} "*Y/N" {send "Y\r";exp_continue} "*password" {send "Password@123\r"}}expect "#*" { send "yum install epel-rele.原创 2022-03-23 14:20:11 · 999 阅读 · 1 评论 -
nginx 文件目录访问和文本文件浏览
nginx 文件目录访问yum install nginx-* nginx -ynginx.conf 设置[root@huayun ~]# cat /etc/nginx/nginx.confuser root;worker_processes 1;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;events { worker_connections 1024;}h原创 2021-10-13 16:17:12 · 914 阅读 · 0 评论 -
ubuntu18.04 设置bond1 主备
ubuntu18.04 设置bond1 主备###bond1 主备设置root@backup:~# cat /etc/netplan/01-netcfg.yaml network: bonds: bond1: addresses: - 10.139.130.4/24 gateway4: 10.139.130.1 interfaces: - eno1 - eno2 nameservers:原创 2021-10-11 15:21:51 · 2750 阅读 · 0 评论 -
vmware 扩容磁盘 cloud-utils-growpart
esxi 中扩容了磁盘至100G,但是在虚拟机上看到的磁盘是扩容前的磁盘容量40G,需要进行一下操作,[root@localhost ~]# fdisk -lDisk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (mini.原创 2021-07-20 16:34:03 · 1384 阅读 · 0 评论 -
bond1 修改成bond4
服务器端修改#ovs bond默认是bond1模式查看bond1模式# ovs-appctl bond/show---- bond2 ----bond_mode: active-backupbond may use recirculation: no, Recirc-ID : -1bond-hash-basis: 0updelay: 0 msdowndelay: 0 mslacp_status: offactive slave mac: 6c:b3:11:08...原创 2021-07-14 09:59:35 · 1584 阅读 · 0 评论 -
windows10 ubuntu 子系统如何开启sshd 和自动开启设置
##手动开启root@sam:/home/sam/taobao# service ssh start * Starting OpenBSD Secure Shell server sshd [ OK ]## 设置软连接 ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service##设置自动开启服务vim /etc/rc.local#!/bin/bashse...原创 2020-11-03 15:50:06 · 454 阅读 · 1 评论 -
导出虚拟机的OVF 模板
###查看未注册的信息Get-ExecutionPolicy -List Scope ExecutionPolicy ----- ---------------MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser Undefined LocalMachine Unrestricted ##注册.原创 2020-08-10 17:31:53 · 1407 阅读 · 0 评论 -
Linux bonding config
删除bond rmmod bondingrm -rf /etc/modprobe.d/bond.conf rm -rf /etc/sysconfig/network-scripts/ifcfg-bond0 reboot 服务器##确认是否删除,如果bonding目录不存在,这删除 cat /proc/net/bonding/bond0 ### config bond4...原创 2020-01-11 13:27:10 · 381 阅读 · 0 评论 -
更新CentOS yum源 自aliyun 源
CentOS 自带的yum 下载很慢,这可以把源 修改为阿里云 的mirrors.aliyun.com/repo/1、备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/CentOS 5wget -O...原创 2018-03-22 17:53:00 · 1162 阅读 · 0 评论 -
zabbix 安装记录
###由于zabbix server在阿里云,配置较低,难以承担目前业务,考虑迁移到 本地机房 zabbix server 升级迁移##zabbixserver 192.168.xxx.256##zabbix 数据库 192.168.1xx.xx2##另外有个两台zabbix-proxy ,1台阿里云,另外一台在另一个机房中配置:zabbixserver 1192...原创 2019-04-01 11:40:35 · 184 阅读 · 0 评论 -
记一次关于sed 使用的脚本
sed 脚本使用很广泛,但往往写完之后测试已不能一次性通过,下面是测试脚本,小结笔记一次#!/bin/bashread -p "请输入tomcat监控ip地址:" IPTIME=`date "+%Y-%m-%d-%H-%M"`scp /opt/soft/tomcat-catalina-jmx-remote-8.5.14.jar root@$IP:/opt/sys/apache-tomc...原创 2019-01-21 17:33:32 · 145 阅读 · 0 评论 -
Iperf 带宽测试
#!/bin/bash#iperf3 测试#iperf 软件地址wget https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpmiperfa :10.100.172.40iperfb :10.100.172.41配置信息:4C,8G mem ,40G disk禁用firewalld...原创 2019-06-13 11:13:17 · 6553 阅读 · 0 评论 -
PXE_INSTALL.sh
#!/bin/sh# PXE_install.sh# ## Created by guoguo on 2019/5/27.服务器:10.100.10.411、服务器禁用SElinux,然后进行重启操作 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Cor...原创 2019-07-08 18:54:57 · 402 阅读 · 0 评论 -
Linux 中python2 、python3 共存
因为CentOS 6/7自带的是Python2,而Yum等工具依赖原来的Python,为了不扰乱原来的环境我们来使用Python虚拟环境$ cd /opt$ python3 -m venv py3$ source /opt/py3/bin/activate# 看到下面的提示符代表成功,以下所有命令均在该虚拟环境中运行(py3) [root@localhost py3]#...原创 2018-03-01 15:30:40 · 3154 阅读 · 0 评论