生活在宁静的角落
ssh 免密码登陆
- linux Server 运行下面命令:
ssh-keygen -t rsa -P ''
例如:
[root@vcentos .ssh]# ssh-keygen -t rsa -P '' Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Your identification has been saved in /root/.ssh/id_rsa. Your public key …点击查看更多…
Windows 自动添加 共享打印机
使用下面的标本,保存为*.bat 文件
@echo off echo Add Printer echo .... sc config spooler start= auto net stop spooler & net start spooler net use \\服务器\IPC$ "密码" /user:"用户" rundll32 printui.dll,PrintUIEntry /in /n "\\服务器 …点击查看更多…
利用Word 链接博客,进行发布
nginx+ php 配置 access denied
之前配置nginx+php的时候,每次,访问html页面是正常的,但是一旦访问php的页面就出现acces denied.
后来发现是nginx配置问题/etc/nginx/conf.d/default.conf
server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /data …点击查看更多…