原创 根據數據庫名稱glkf查看使用的用戶

sqlserver數據庫用的很少命令也不會操作,遇到了sqlserver上需要查詢一下那個庫被那個用戶使用都不知道該如何下手,好不容易找到一個有幫助的博客,趕緊記錄一下,感謝分享 根據數據庫名稱glkf查看使用的用戶Select spid,

原创 execl去除重複數據

比較兩個execl表是否有重複完整的公式=IF(A2=Sheet2!A2:A2864,"是","否")兩個表的內容如上,需要對比出其中的重複數據1、首先在B2位置輸入=if(A2= #A2表示需要對比的數據開始位置2、切換到另一個sh

原创 端口掃描nmap

#!/usr/bin/python3 -- coding:utf-8 -- import sysimport nmap scan_row = []input_data = input('Please input hosts and port

原创 but there is no HDFS_NAMENODE_USER defined

看着書嘗試安裝一下Hadoop服務遇到了如下報錯:ERROR: Attempting to operate on hdfs namenode as rootERROR: but there is no HDFS_NAMENODE_USER

原创 centos安裝kvm

配置yum源 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 安裝軟件包yum clean allyum -y

原创 java.lang.OutOfMemoryError: PermGen space

處理方法:設置tomcat的配置文件/usr/local/tomcat/bin/catalina.sh 1G內存環境下java jvm 的參數設置參考:JAVA_OPTS="-server -Xms800m -Xmx800m -XX:Per

原创 error while loading shared libraries: libpcre.so.1

error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory處理cd /lib64

原创 The mbstring extension is missing

具體報錯如下:The mbstring extension is missing. Please check your PHP configuration. 安裝php-mbstring之後沒有上面的提示了

原创 sqlserver2000下載地址

下載sqlserver 2000https://www.newasp.net/soft/19831.html

原创 安裝MySQL-python報錯

安裝MySQL-python報錯pymemcompat.h:10:20: error: Python.h: No such file or directory缺少python-devel開發包參考鏈接:https://www.2cto.co

原创 sqlserver操作

遇到了需要操作一下sqlserver服務器,我連命令操作都不會,百度了半天終於找到一個能用的,雖然是不怎麼樣用但是記錄一下比較好,要不然以後萬一哪天又遇到了又需要查半天 select * from master..sysprocesses查

原创 phpmyadmin不能訪問

phpmyadmin有如下的報錯:syntax error, unexpected '@' in /var/www/html/phpmyadmin/libraries/common.inc.php看日誌沒有看出問題,通過百度發現是PHP版本

原创 ubuntu16.04 安裝拼音輸入法

安裝了個Ubuntu系統想安裝一個漢字輸入法,百度半天沒有找見一個安裝成功的,折騰了很久終於發現一個簡單的,紀錄一下1、先安裝語言包 System Settings–>Language Support–>Install/Remove Lan

原创 sqlserver遷移數據

將sqlserver2000的備份數據遷移到sqlserver2005時使用數據庫對應的用戶video315無法訪問指定的數據庫報錯:用戶、組或角色 'video315' 在當前數據庫中已存在。 (Microsoft SQL Server,

原创 pexpect 記錄

#!/usr/bin/python3#-- coding:utf-8 -- import pexpectimport sys child = pexpect.spawn('/usr/bin/ssh [email protected]')