
Linux
文章平均质量分 56
EVISWANG
这个作者很懒,什么都没留下…
展开
-
Sendmail导致开机慢
[root@node1 soft]# chkconfig --listsendmail--listsendmail: unknown option[root@node1 soft]# chkconfig --listsendmailsendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off[root@node1 soft]# c原创 2015-11-21 14:24:14 · 417 阅读 · 0 评论 -
VNC
VNC应该是服务器上图形化的首选了,首先一般安装linux是自动会安装这个工具[root@node4 ~]# rpm -q vncvnc-4.1.2-14.el5_3.1[root@node4 ~]# [root@node4 ~]# rpm -q vnc-servervnc-server-4.1.2-14.el5_3.1[root@node4 ~]# 其次因为vnc原创 2015-12-08 09:23:24 · 688 阅读 · 0 评论 -
自定义OS, SQL命令提示符
以下命令一定要常用常用hostnameidwho am iecho $ORACLE_SIDpwd避免连错服务器,在root家目录下的.bashrc中添加如下内容PS1='[\h:\u:\w${ORACLE_SID}]$'\h代表主机名 \u代表当前OS用户\w是显示当前目录更多参数如下原创 2016-04-25 11:51:42 · 544 阅读 · 0 评论 -
无法通过su - oracle进行用户切换 su: incorrect password
问题描述:[root@gasdbadm01 etc]# passwd oracleChanging password for user oracle.You can now choose the new password or passphrase.A good password should be a mix of upper and lower case letters原创 2016-06-03 17:32:26 · 6196 阅读 · 1 评论 -
ping: www.baidu.com: Name or service not known centos7 -bash: ifconfig: command not found
[root@mysqlcentos01 ~]# ping www.baidu.comping: www.baidu.com: Name or service not known[root@mysqlcentos01 ~]#这个修改:/etc/sysconfig/network-scripts/ifcfg-enp0s3和ifcfg-enp0s8中的ONBOOT为yes[root@my原创 2017-08-25 11:39:34 · 7074 阅读 · 0 评论 -
mysql 日期值insert 到 oracle
只需要将insert语句的'2016-4-28 09:58:52'全部转换成to_date('2016-4-28 09:58:52','yyyy-mm-dd HH24:mi:ss')可以用原创 2017-10-10 13:43:23 · 428 阅读 · 0 评论 -
Linux lvm 文件目录扩容
[root@Tdb1 ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root 158G 13G 137G 9% /tmpfs 253G 115G 138G 46% /dev/shm/...原创 2018-11-21 22:56:21 · 1988 阅读 · 0 评论 -
Linux 压测工具 stress 安装下载
下载地址http://people.seas.harvard.edu/~apw/stress/将stress-1.0.4.tar.gz复制到“/etc/local/src/”目录下:执行以下命令安装:Step1 #cd /usr/local/srcStep2 #tar -xzpvf stress-1.0.4.tar.gzStep3 #cd stress-1.0.4Step4...原创 2018-12-01 18:36:54 · 8508 阅读 · 1 评论 -
sysbench 压测 安装
sysbench是一款开源的多线程性能测试工具,可以执行CPU/内存/线程/IO/数据库等方面的性能测试。更重要的我们是用来做OLTP的测试http://imysql.com/2014/10/17/sysbench-full-user-manual.shtml下载地址:http://imysql.com/wp-content/uploads/2014/09/sysbench-0...原创 2018-12-01 22:53:58 · 593 阅读 · 0 评论 -
xhost: unable to open display ""
查了半天资料怎么DISPLAY都没用最后xstart工具连接报错 ”已拒绝X11转移申请“https://blog.youkuaiyun.com/scofy0/article/details/42774983原来X11 forwarding依赖“xorg-x11-xauth”软件包,所以必须先安装“xorg-x11-xauth”软件包。yum install xorg-x11-xauth)...原创 2019-09-20 22:46:49 · 678 阅读 · 0 评论 -
VNC无法调出图形界面
[root@gasdbadm01 ~]# cat .vnc/xstartup#!/bin/sh[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18nexport LANGexport SYSFONTvncconfig -iconic &unset SESSION_MANAGERunset DBUS_SESSION_原创 2016-03-09 17:03:09 · 1478 阅读 · 0 评论 -
Could not find an open hard disk with UUID {57bbe8fe-8b4f-4a0d-aef4-1291b23d2bef}. 返回 代码: VBOX_E_OBJ
Could not find an open hard disk with UUID{57bbe8fe-8b4f-4a0d-aef4-1291b23d2bef}.返回 代码:VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)组件:VirtualBoxWrap界面:IVirt原创 2016-03-30 09:07:12 · 2769 阅读 · 0 评论 -
top 详解
第一行:任务队列消息现在的时间 运行了多少天小时分 users用户数 load 系统负载,即任务队列的平均长度, 三个数值分别为 1分钟、5分钟、15分钟前到现在的平均值第二行:进程消息Tasks-进程总数 第三....:CPU消息VIRT:virtual memory usage 进程“需要的”虚拟内存大小 RES:resident mem原创 2015-12-09 08:44:51 · 618 阅读 · 0 评论 -
crontab备忘
crontab备忘 crontab -e 编辑的是/var/spool/cron下对应用户的cron文件 或直接修改/etc/crontab文件Minute Hour Day Month Dayofweek command分钟 小时 天 月 天每星期 命令 每个字段代表的含义如下...原创 2015-11-20 12:36:16 · 442 阅读 · 0 评论 -
Xshell连接很慢的解决办法
ssh的服务端在连接时会自动检测dns环境是否一致导致的,修改为不检测即可,操作如下:修改文件:/etc/ssh/sshd_configUseDNS yes --->默认为注释行UseDNS no --->把注释打开,改为no,然后重启ssh服务即可直接执行/etc/rc.d/init.d/ssh restart或者sevice ssh restart/etc/i...原创 2015-11-21 14:25:11 · 7928 阅读 · 3 评论 -
内核Kernel
[root@node4 ~]# ls -l /boot/vmlinuz-2.6.18-194.el5 -rw-r--r-- 1 root root 1953660 Mar 17 2010 /boot/vmlinuz-2.6.18-194.el5内核下载地址:https://www.kernel.org/原创 2015-11-21 14:20:23 · 507 阅读 · 0 评论 -
OSWatch
OSWatcher 简介OSWatcher (oswbb) 是一个可供用户下载的工具,可以用来抓取操作系统的性能指标。作为性能诊断数据搜集最佳实践的一部分,安装和运行 oswbb 可以帮助 Oracle 技术支持和开发更快解决您的SR。oswbb 由两个部分组成:1. oswbb: 一个 unix 操作系统的 shell script,来搜集和存储数据。2. oswbba:原创 2015-12-08 15:05:38 · 1350 阅读 · 0 评论 -
crontab 解锁
今天检查归档发现近一个月的归档未清理 ,准备配置个自动清除但发现如下问题:[peoplesoft@zbdb ~]$ crontab -lYou (peoplesoft) are not allowed to use this program (crontab)See crontab(1) for more information[peoplesoft@zbdb ~]$在 L原创 2015-12-02 10:04:15 · 591 阅读 · 0 评论 -
grep linux
[root@node4 ~]# grep --helpUsage: grep [OPTION]... PATTERN [FILE] ...Search for PATTERN in each FILE or standard input.Example: grep -i 'hello world' menu.h main.cRegexp select原创 2015-12-02 14:31:07 · 881 阅读 · 0 评论 -
dstat
如果系统没有些工具 yum -y install dstat安装下即可常用参数:-c cpu,显示CPU系统占用,用户占用,空闲,等待,中断,软件中断等信息-C 当有多个CPU时候,此参数可按需分别显示cpu状态e.g -C 0,1 显示cpu0和cpu1的信息-d disk,显示磁盘读写数据大小-D hda and total-n net 显示网络状态-N net原创 2015-12-22 16:03:26 · 693 阅读 · 0 评论 -
ipcs
[root@node1 oracle]# ipcs------ Shared Memory Segments --------key shmid owner perms bytes nattch status 0x74030385 1835008 root 600 4 0原创 2015-12-23 14:12:11 · 548 阅读 · 0 评论 -
No X11 DISPLAY variable was set, but this program performed an operation
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.No X11 DISPLAY variable was set, but this program performe...原创 2019-09-20 22:47:50 · 4131 阅读 · 0 评论