L42※使用 systemd 实现 screen 开机启动
1> 创建一个新的 systemd 服务文件 vim /etc/systemd/system/screen.service 2> 在新文件中添加以下内容 [Unit] Description=Screen Session [Service] Type=simple User=<you...
L29※ubuntu搭建NTP Server
1> 寻找NTP SERVER http://www.pool.ntp.org是NTP的官方网站,这里可以查询最近的NTP Server。 ntp1.aliyun.com ntp.tencent.com ntp.ntsc.ac.cn # 中国NTPserver server 0.cn.pool.ntp.org s...
N10※为Excel添加闪光灯效果
<1>、条件格式设置 使用公式确定要设置格式的单元格: =(CELL('col')=COLUMN())+(CELL('row')=ROW()) 设定自己喜欢的颜色及其样式; <2>.VBA代码 Private Sub Worksheet_SelectionC...
L13※centos 搭建ftp服务器
1> 安装vsftpd yum install -y vsftpd systemctl start vsftpd systemctl enable vsftpd 2> 为ftp创建用户 useradd ftpuser passwd ftpuser 3> 创建ftp文件目录 mkdir /home/ftpuser/d...
L44※Ubuntu搭建mqtt服务器
1> 引入库 sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa sudo apt-get update 2> 安装库文件 sudo apt-get install mosquitto sudo apt-get install mosquitto-dev sudo apt...
N03※为win7添加usb3.0驱动
1> 准备工作 下载好驱动windows系统已经写入U盘 2> 操作步骤 ① D盘新建win7的文件夹 在win7文件夹里再新增两个子文件夹 mount 及 usb3U盘中找到sources文件夹下的“boot.wim”及“instal...
N31※Windows Server 2022 系统评估版转为正式版
1、管理员模式运行cmd,输入命令,其中ServerDatacenterEval去掉Eval后,就是当前的Edition ID DISM /online /Get-CurrentEdition C:\Users\Administrator>DISM /online /Get-CurrentEdition 部...
N11※python常用模块的用法
1> js2py模块 import js2py # 创建 js 执行环境 context = js2py.EvalJs() fun_js = ''' function add(a,b){ return a+b } ''' # 加载 js 文件 context.execute(fun_js) # 输出函数 print(co...
N12※Centos安装gitbook
1> 安装node.js 2> 安装gitbook npm install -g gitbook-cli ln -s /usr/local/nodejs/node-v6.16.0-linux-x64/bin/* /usr/sbin/ gitbook -V ① 解决TypeError: cb.apply is not a functi...
L17※ubuntu开启root登录
1> 设置 root 账户密码 sudo passwd root 2> 修改 .profile vim /root/.profile # mesg n || true tty -s && mesg n || true 3> 修改 gdm-autologin 和 gdm-password cd /etc/...