远程连接Windows虚机登录失败:An authentication error has occurred 获取链接 Facebook X Pinterest 电子邮件 其他应用 八月 01, 2019 This could be due to CredSSP encryption oracle remediation 这是由于Windows的安全补丁引起的。简单来说就是连接的双方有一方没有打全补丁。所以解决的方法就是用自动更新打补丁... 获取链接 Facebook X Pinterest 电子邮件 其他应用 评论
tar: Removing leading `/' from member names 三月 07, 2018 或是中文:tar: 从成员名中删除开头的“/” 首先,这其实不是一个错误,虽然是输出到了stderr里,但其实是系统的一个提示,如所述,删掉了开头的/符号,亦即,去掉了绝对路径的意思 出现此条告警,是因为指定打包目录时,给的是绝对路径,比如: # tar zcvf name.tar.gz /home/test/test_folder tar处理时,默认是将/home/test/test_folder的开头的"/"删掉,变为home/test/test_folder这种格式,这样,稍后要untar的时候,不至于将untar出来的文件直接按绝对路径覆盖了原始的文件,在很多情况下,这并非我们的原意,我们会更倾向于只是把备份文件解到一个另外的文件目录下,查看对比。所以,tar的这种默认行为其实是更合理的 也所以说,网上很多文章对此告警给出的解决方法用p选项强制tar不要删除开头的"/",其实在大多数情况下,并不是一个好的解决方法 # tar zcvfp name.tar.gz /home/test/test_folder 虽然用p选项的确不报警了,但是如上所述,消除报警一时爽,将来解压的时候很可能会灾难的 tar自己的解决方法,就是将绝对路径改为相对路径,比如在当前目录下 # cd /home/test # tar zcvf name.tar.gz test_folder 另一种方法,可以使用-C中转一下,比如 # tar zcvf name.tar.gz -C / home/test/test_folder -C /的意思是说指定目录到根目录/,然后把后面的绝对路径开始的"/"去掉,这样,也能达到既使用绝对路径,又不会有报警的目的 但是shell编程的时候,经常会使用变量,比如 # target=/home/test/test_folder # tar zcvf name.tar.gz $target 这样的话,除非定义变量的时候规避"/",否则确实没有啥好办法防止报警。但如开头所述,这其实是一条info而非error,所以个人觉得,宁可报警,也不要用p选项的好 阅读全文
centos上安装cpp11编译环境 十月 09, 2018 先装gcc: [root@localhost ~]$ yum install gcc ... ... 验证版本: [root@localhost ~]$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-r... 阅读全文
MySQL8.0 on RHEL7 九月 17, 2019 用了很久的mysql5.7,终于也要升级到mysql8.0了。升级之后的安装配置步骤有些不同,记录一下 mysql5.7的安装步骤: https://cbzhan.blogspot.com/2018/01/linuxel7-mysql5720-jira738.html mysql8.0的官网安装文档: https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html 1. 首先还是下载yum源: 1) 访问 https://dev.mysql.com/downloads/repo/yum/ ,找到对应的OS和mysql版本的yum源包 2) 下载yum源包: # wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 3) 安装: # rpm -ivh mysql80-community-release-el7-3.noarch.rpm 4) 确认一下: # yum repolist all | grep mysql 2. 和5.7时一样,卸掉系统自带的mariadb的包 1) 先查询一下: # rpm -qa|grep mariadb mariadb-libs-5.5.64-1.el7.x86_64 2) 卸载: # yum remove mariadb-libs-5.5.64-1.el7.x86_64 3) 再确认一下已经没有了: # rpm -qa|grep mariadb 3. 安装mysql8.0: 1) yum安装: # yum -y install mysql-community-server 2) 确认一下: # rpm -qa | grep mysql mysql-community-common-8.0.17-1.el7.x86_64 mysql-community-server-8.0.17-1.el7.x86_64 mysql80-community-release-el7-3.noarch mysql-community-client-8.0.17-1.el7.x86_64 mysql... 阅读全文
评论
发表评论