记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
服务器RAID硬盘与日志主要检测方法1:对于 Dell 的机器并且配备了 LSI 的 raid 卡,那么 Megacli 自带的命令是最直观最可靠的硬盘检测方法。 #/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -aall 以其中的一块硬盘为例。 Enclosure Device ID: 32 Slot Number: 2 Enclosure position: 0 Device Id: 2 //ID 号 Sequence Number: 2 Media Error Count: 0 // 如果 error 数值较多 , 那么需要更换硬盘 Other Error Count: 0 Predictive Failure Count: 0 // 可理解为预知性的错误 , 这个数值较多意味着硬盘即将坏 掉, 现场会黄绿灯交叉闪烁 Last Predictive Failure Event Seq Number: 0 PD Type: SAS Raw Size: 136.732 GB [0x Sectors] Non Coerced Size: 136.232 GB [0x Sectors] Coerced Size: 136.125 GB [0x Sectors] Firmware state: Online, Spun Up // 如 果 硬 盘 坏 了 那 么 会 出 现 Failed 或 者 是 unconfigured(bad) SAS Addres...
oracle PLSQL,游标,loop循环删除部分表方法。使用Toad for Oracle时,使用新建用户连接时,连接身份 搞成了 as sysdba,导致执行添加表与表数据时,都变成sys账号下了。表比较多,删除时使用游标与loop循环,执行不成功。不清楚哪里不对(主要是水平太次,)。如下:declare CURSOR d_cursor is SELECT OBJECT_NAME FROM sys.DBA_objects WHERE OBJECT_TYPE = 'TABLE' AND owner = 'STUDENT'; d_record d_cursor%ROWTYPE;begin OPEN d_cursor; LOOP FETCH d_cursor INTO d_record; EXIT WHEN d_cursor%NOTFOUND; execute immediate 'DROP TABLE ' || d_record.object_name || ' cascade constraints'; Dbms_Output.put_line(d_record.object_name || ' 表删除成功'); end loop; close d_cursor; commit;end;/行 2 出错ORA-00942: 表或视图不存在ORA-06512: 在 line 19脚本已在第 2行终止。(搞了很久才清楚,在sys或system账号会话连接中,只要添加 execute im...
下载备份脚本文件windows: 下载http://downinfo.myhostadmin.net/vps/bkupmysql.bat 保存到d盘根目录linux: wget http://downinfo.myhostadmin.net/vps/bkupmysql.sh 保存到/root目录3.编辑脚本文件windows:用记事本打开bkupmysql.bat set dbuser=root #设置数据库用户,一般不需要修改set dbpass=passwd #设置数据库超管密码,需要修改为实际的密码set DaysAgo=7 #设置保留天数set mysqlpath=d:\mysqlbak #设置备份文件保存路径,一般不需要修改set mysql=D:\SOFT_PHP_PACKAGE\mysql\bin\mysql.exe #设置备份文件保存路径,5.6版本需要修改路径set mysqldump=D:\SOFT_PHP_PACKAGE\mysql\bin\mysqldump.exe #设置mysql执行文件路径,5.6版本需要修改路径set logfile=d:\bkinfo.log &n...
脚本自动处理(推荐)1、远程登录服务器下载脚本 :wget http://downinfo.myhostadmin.net/vps/openssl.sh2、然后执行:sh openssl.sh手工处理方法一、安装openssl依次执行下面命令cd /tmp
wget -c https://www.openssl.org/source/openssl-1.0.2l.tar.gz
tar zxvf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l
./config --prefix=/usr --shared
make -j4 && make install
openssl version -a安装好了显示如下图只能使用openssl1.0.*的版本 ,openssl1.1.0及以上不兼容 ,可查看openssh安装说明使用openssl1.1.*版本编译openssh时会出现下面的错误二、升级openssh依次执行下面命令yum install -y pam-devel
cd /usr/local/src
wget -c https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz
tar zxvf openssh-7.5p1.tar.gz
cd openssh-7.5p1
./configure --sbindir=/usr/sbin/ --bindir=/usr/bin/ --sysconfdir=/etc/ssh --with-ssl-engine --with-pam
make -j4 &am...
部署https后访问提存在安全隐患NET::ERR_SSL_OBSOLETE_VERSION部署https后访问域名出现如下提示:您的连接存在安全隐患此网站使用的安全性配置已过时,这可能会导致您的信息(例如密码、消息或信用卡卡号)在发送至此网站的过程中遭到泄露。NET::ERR_SSL_OBSOLETE_VERSION原因是服务器openssl版本过低,较新版本的浏览器会提示不安全,openssl version -a可查看openssl版本Openssl 1.0.0h支持SSLv2,SSLv3和 TLSv1.0Openssl 1.0.1添加了对TLSv1.1和TLSv1.2的支持Openssl 1.1.1开始支持TLS1.3旧版(openssl1.0.2|openssh7.5)升级参看https://www.west.cn/faq/list.asp?unid=1754升级openssl-1.1.1cd /usr/local/src
wget -c https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./config --prefix=/usr --shared
make -j4 && make install
openssl version -a升级openssh8.3p1cd /usr/local/src
mv /etc/ssh /etc/ssh.bak
yum install -y pam-devel
wget -c https://...
ubuntu18.04,ubuntu20.04 安装gnome-desktop桌面环境方法 Instructions Gnome Vanilla Installation on Ubuntu Gnome vanilla installation on Ubuntu 18.04 will leave you with a basic Gnome shell features and minimal pre-installed applications.To perform a vanilla installation of Gnome desktop execute the following linux command: sudo apt install gnome-session gdm3 ...
Install VNC Server with Gnome display on Ubuntu 18.04 away, 1 year ago 4 5 min read 1881VNC Server is the software used to do VNC (Virtual Network Computing) desktops on Linux environments. If you use the Windows Operating System, you only have to activate Remote Desktop. But on Linux, you have to install VNC Server so you can do remote desktop in real-time.There is much software for VNC servers, but in this article, we will only discuss how to install VNC servers using TigerVNC. For information about TigerVNC, you can directly visit the official site on the page https://tigervnc.org/.Daftar IsiPreparationInstall VNC ServerSystem UpdateInstall Tiger VNCInstall GnomeVNC Password SettingsStartup Script SettingsStart VNC ServerStart Stop ScriptConnect to VNC ServerAnother thingSee if VNC Server is activeSee who is connectedDelete the VNC sessionConclusionPreparationTo follow this article, you must prepare an Ub...
ubuntu配置vnc相关功能,x11vnc,vino,krfb,tightvncserverIntroductionA VNC server is a program that shares a desktop with other computers over the Internet. You will need a VNC server if you want other people to see your desktop. Every VNC server has different strengths and weaknesses and is appropriate for different uses. This page will discuss each of the VNC servers available in Ubuntu, and ways to configure them for most common uses of VNC.Common security optionsThe most important thing when setting up a VNC server is to only let the right people access your desktop. The safest way to do that is usually to have someone sitting at the desktop deciding who gets to use it, but that's not always practical - for example, if you want to log in to your own computer from somewhere else.If you want to confirm each connection manually, you should look for these options:Request access each time - pop a window up asking whether to allow each connection as it comes in.view-only access - ...
Activating the gnome VNC vino-server from the command lineNewsRecommended LinksArchitectureConfigurationX display managerXDMCPExporting_display"Can't open display" Error.XresourcesxrdbUsing xauthXdefaultsFonts in XX11 securityXmingCygwin/XvncvinoTroubleshootingDiagnosing problems with remote X11 sessions via SSHInstalling X11 and Gnome Desktop in RHELTipsHumorEtcIntroductionYou can export display and see X11 session on other machine or via DRAC or ILO interfacesYou do not have access to X11 sessionubutnu 使用命令行激活运行vino-server实现gnome桌面的VNC由于ubuntu desktop 18.04自带的定制了的gnome桌面系统,在该桌面系统下vnc4server和tightvncserver等均不可直接使用,网上现有配置vnc server方法太麻烦,而且还用不起来。实际上Ubuntu Desktop是有桌面共享功能的,只是由于我是最小化安装的而没有被带进来。Ubuntu桌面共享使用的是vino。Ubuntu桌面共享使用的是vino。Ubuntu桌面共享使用的是vino。重要的事说三遍,在ubuntu默认的gnome环境下不要使用vnc4server和tightvncserver,使用vino!解决方法:安装vino。打...
最新评论