Linux
ganices
这个作者很懒,什么都没留下…
展开
-
linux iscsi 服务挂载磁盘
==========服务器端==============================# iscsi 服务systemctl enable targetsystemctl start targetyum install scsi-target-utilsdd if=/dev/zero of=/data_2T/iscsi_disk.img count=0 bs=1 seek=1000Gmv /etc/tgt/targets.conf /etc/tgt/targets.conf_default原创 2021-05-26 14:46:06 · 909 阅读 · 0 评论 -
安装,配置 supervisor 4.2.2
安装,配置 supervisor 4.2.2# 下载cd /optwgethttps://files.pythonhosted.org/packages/d3/7f/c780b7471ba0ff4548967a9f7a8b0bfce222c3a496c3dfad0164172222b0/supervisor-4.2.2.tar.gz#安装python-setuptoolsyum install python-setuptools# 安装supervisortar -zxv.原创 2021-04-25 14:15:47 · 1151 阅读 · 0 评论 -
Centos7 firewalld 端口转发
Centos7 firewalld 端口转发# 查看公网ip# curl cip.cc# 添加端口转发# ifconfig# firewall-cmd --zone=public --add-forward-port=port=18089:proto=tcp:toport=6005:toaddr=192.168.0.100 --permanent# firewall-cmd --reload# firewall-cmd --list-all#port 为本机监听端口#.原创 2021-04-09 16:24:27 · 245 阅读 · 0 评论 -
iptables linux 限速
iptables linux 限速iptables -AINPUT -p tcp -s 10.10.243.94-m limit --limit=10/s -j ACCEPTiptables -AINPUT -p tcp -s 10.10.243.94 -j DROPiptables -nvL # 查看规则iptables -F # 清空规则原创 2021-02-26 17:43:52 · 315 阅读 · 0 评论 -
linux 挂载windows 共享盘
安装ubuntuapt-get install nfs-commoncentosyum install cifs-utilsyum install nfs-utils挂载mount -t cifs -o user=administrator@xxx.xxx,password='xxxxxx',dir_mode=0777,file_mode=0777 //192.168.xxx.xxx/remotedir /opt/localdir原创 2021-01-19 09:29:22 · 128 阅读 · 0 评论 -
Linux lvm 磁盘逻辑卷创建磁盘
查看系统当前分区df -h查看系统当前所有磁盘以及分区fdisk -lyum -y install lvm2也可通过 /dev/mapper/ 下的文件来安装LVM 分区======================================================================================pvdisplaypvspvremovevgdisplayvgsvgremovelvdisplaylvslvremove l...原创 2021-01-15 11:37:22 · 144 阅读 · 1 评论 -
vSphere VM添加磁盘后无法识别
[root@localhost scsi_host]# cd /sys/class/scsi_host[root@localhost scsi_host]# pwd/sys/class/scsi_host[root@localhost scsi_host]# echo "- - -" > host0/scan原创 2021-01-15 11:30:15 · 1450 阅读 · 0 评论 -
Centos,Ubuntu部署Supervisor
Supervisor部署Centos7 安装#yum install epel-release# yum -y install supervisor# systemctl enable supervisord# systemctl start supervisord # 启动supervisord服务 # systemctl status supervisord # 查看supervisord服务状态 # ps -ef|grep supervisord # 查看是否存在s.原创 2020-12-09 09:22:40 · 139 阅读 · 0 评论