- 博客(5)
- 收藏
- 关注
原创 Python pip源
pip的国内源和国外源 pip国内源 (1)阿里云 http://mirrors.aliyun.com/pypi/simple/ (2)豆瓣http://pypi.douban.com/simple/ (3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ (4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ (5)华中科技大学http://pypi.hustunique.com/ pip默认国外源 (1)htt
2021-06-05 13:30:43 147
原创 Python使用隐函数画心
Python使用隐函数画心 python使用隐含数画心 #代码如下 #!/usr/bin/python3 from sympy.parsing.sympy_parser import parse_expr from sympy import plot_implicit exc = lambda exper: plot_implicit(parse_expr(exper)) exc('x**2+(y-x**(2/3))**2-1') 效果如下: 注意:需安装matplotlib库,用于显示。否则会报错
2021-06-05 13:07:13 263
原创 sftp帐号创建(限制ssh、锁定家目录)
需求 Linux系统创建sftp账户传输文件,需要sftp帐号不能登录系统,并且锁定家目录。 1. 创建用户 useradd -d /home/sftp_test -s /sbin/nologin sftp_test 首先创建一个不能登录的并且指定了家目录的帐号。 2.配置用户密码 echo "centos" | passwd --stdin sftp_test 修改用户的密码 3.配置ssh服务 vi /etc/ssh/sshd_config 再修改ssh服务的配置文件。 首先修改这两项,Perm
2020-06-29 15:22:26 739
原创 SHELL比较大小脚本
1.代码 #!/bin/bash read -p "input first number:" n1 read -p "input second number:" n2 if [ "$n1" -gt "$n2" ];then echo "$n1 > $n2" elif [ "$n1" -lt "$n2" ];then echo "$n1 < $n2" else echo "$n1...
2019-12-12 10:35:29 607
原创 浪潮NF5280M5如何进行raid配置
浪潮NF5280M5如何进行raid配置 这个服务器的RAID配置藏的非常深。 首先开机界面按Del键进入BIOS。 然后进入Advanced界面,找到LSI SAS3 Controller SAS3008,点进去就可以配置RAID了。 ...
2019-12-11 12:14:38 26763 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人