摘要: 登陆 mysql -h 172.16.246.200 -uroot -pPassword123@mysql -P3307 创建数据库和删除数据库 create database django_orm_study drop database django_orm_study 查看数据库和表 show 阅读全文
posted @ 2025-05-20 22:20 seven1986 阅读(5) 评论(0) 推荐(0)
摘要: 将nssm和nginx.exe放在一起 输入命令: nssm install nginx.service 点击“install service” 成功后打印: nssm install my_nginx services.msc 查看nginx_service服务状态 删除nginx服务 nssm 阅读全文
posted @ 2025-04-03 17:03 seven1986 阅读(33) 评论(0) 推荐(0)
摘要: vscode-terminal 执行命令被禁止了,处理方法如下 以管理员身份运行PowerShell(注意不是CMD) Set-ExecutionPolicy RemoteSigned -Scope CurrentUser #给予权限 选择y,enter键 Set-ExecutionPolicy R 阅读全文
posted @ 2024-12-24 15:55 seven1986 阅读(23) 评论(0) 推荐(0)
摘要: yum mirrorlist 找不到了 #yum list|grep node Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error wa 阅读全文
posted @ 2024-11-08 12:42 seven1986 阅读(40) 评论(0) 推荐(0)
摘要: 设置网络 ifconfig eth0 10.10.10.238 netmask 255.255.255.0 route add default gw 10.10.10.251 修改地址(centOS/redhat) cd /etc/sysconfig/network-scripts vi ifcfg 阅读全文
posted @ 2024-09-17 16:28 seven1986 阅读(10) 评论(0) 推荐(0)
摘要: 安装依赖 yum -y install gcc automake autoconf libtool make yum -y install pcre-devel openssl openssl-devel gd-devel gcc gcc-c++ yasm-1.3.0 安装 cd yasm-1.3. 阅读全文
posted @ 2024-08-13 18:29 seven1986 阅读(31) 评论(0) 推荐(0)
摘要: 实例1 import threading #线程 import time def Hi(num): print("线程总用时:%d sec --> start "%num) time.sleep(num) #等待时间 print("线程结束%d" % num) if __name__ == '__m 阅读全文
posted @ 2021-11-30 23:43 seven1986 阅读(38) 评论(0) 推荐(0)
摘要: ****************************************with语句******************************************* with expression as target: with-body import os,sys os.chdir( 阅读全文
posted @ 2021-11-29 23:03 seven1986 阅读(32) 评论(0) 推荐(0)
摘要: linux 3.10内核 V6 ping6 fe80::214:10ff:fe23:c8b8%em1 linux 4.xx内核 V6 ping fe80::214:10ff:fe23:c8b8%enp4s0 win10 V6 ping -6 fe80::214:10ff:fe23:c8b8 阅读全文
posted @ 2021-11-24 16:14 seven1986 阅读(64) 评论(0) 推荐(0)
摘要: ************************** centOS7 ************************* 1.安装相应的编译工具 yum -y groupinstall "Development tools" yum -y install zlib-devel bzip2-devel 阅读全文
posted @ 2021-10-21 09:41 seven1986 阅读(56) 评论(0) 推荐(0)