网上搜了相关资料,大部分都是说修改组策略,通过手动的\\tsclient\盘符名称 这样的方式来登陆拿win7为例,其实不显示,是因为有些ghost系统安装后,或者安全软件会禁用了一些服务通过开始-运行,输入services.msc然后找到下面两个服务Remote Desktop ServicesRemote Desktop Services UserMode Port Redirector将它设为启动状态,启动类型选为自动即可,然后在断开重新连接,看是否能够看...
2018-07-25 /
2956 次浏览 /
Win技术
mv 数据库data目录
执行全路径
/usr/local/mysql/scripts/mysql_install_db --basedir=/usr/local/mysql --defaults-file=/usr/local/mysql/my.cnf --datadir=/usr/local/mysql/data/ --user=mysql
出现两个ok就可以了
启动数据库
修改数据库密...
已安装版本[root@ceshi100 nginx]# /opt/nginx/sbin/nginx -vnginx version: nginx/1.14.0升级版本[root@ceshi100 nginx]# wget http://nginx.org/download/nginx-1.15.0.tar.gz [root@ceshi100 nginx]# tar xf nginx-1.15.0.tar.gz [root@ceshi100 nginx]# cd ng...
[admin@shnne logana]$ cat check_logana.sh
#/bin/bash
#check the logana
DIR=$(cd `dirname "$0"`;pwd)
LOGANA=${DIR}/nohup.out
ERRONUM=`tail -1 $LOGANA|grep "execute...
The ngx_stream_core_module module is available since version 1.9.0. This module is not built by default, it should be enabled with the --with-stream configuration parameter.升级:可以下载新版本的,可以通过sbin/nginx -V 查看之前编译的的模块,解压新版本,...
grep -v "^$" file.txt
sed '/^$/d' file.txt
awk '!/^$/' file.txt
egrep "\S" file.txt注:^$表示空行。grep -v 表示排除。sed '//d' 表示删除awk '!//' 表示排除或取反。...
1、MySQL命令行删除:
从第一个文件删除到第四个
mysql> purge binarylogs to 'mysql-bin.000004';
按照时间,删除指定时间之前的
mysql> PURGE MASTER LOGS BEFORE '2017-03-20 00:00:00';
清除所有bin-log...
2018-04-10 /
1812 次浏览 /
数据库教程
nginx禁止指定目录运行php,只需要在server配置段中增加个location规则就可以了。
1、禁止某一个目录执行php
location ~* ^/download/.*\.(php|php5)$
{
deny all;
}
2、禁止多个目录执行php
location ~* ^/(download|down)/.*\.(php|php5)$
{
deny all;
}
注意:...
在nginx的server字段中配置下面内容即可if ($http_user_agent ~* (baiduspider|googlebot|bing|sogou|yahoo)){return 503;}如果单独屏蔽百度蜘蛛就是if ($http_user_agent ~* baiduspider){return 503;}...
physical id 从0到1,说明有2个物理cpu;
processor 从0到7,说明有8个逻辑CPU(如果不支持超线程的话);
支不支持超线程,就看siblings和cpu cores是否相等,如果siblings=cpu cores,则不支持超线程;如果siblings > cpu cores,则支持超线程,此时 逻辑cpu个数 = (...