给些DOS、UNIXLINUX下的命令?

给些DOS、UNIXLINUX下的命令?,第1张

AIX 的常用命令AIX *** 作系统基本命令系统的进入和退出

login: 输入用户名(例如:user01)

password: 输入用户口令

若用户名及口令均正确,则用户将登陆成功。

此时系统会出现命令提示符$或#,即表示可接收用户输入的 *** 作系统命令。

退出系统:或 exit或logout。

例:#(or$)exit

#(or$)Ctrl^D

注,#为ROOT用户的命令提示符,$为一般用户

password

password命令用于建立或修改用户的密码。

如:

#password

passwd:—输入旧口令

new passwd:—输入新口令

re-enter new paswd: —重新输入新口令

mkdir、rm、mv和cd

mkdir:用于创建目录

$ mkdir oracle

$ ls

oracle

$

rm:用于删除文件或目录(rm –r 删除目录时目录内有内容,用-r一起删除)

$ rm -r oracle

$ ls

$

mv:用于改变文件或目录名

$ mkdir ll

$ ls

ll

$ mkdir kk

$ ls

kk ll

$ mv ll kk

$ ls

kk

$ cd kk

$ ls

ll

$

cd:用于进入系统某一级目录中去

$ cd /

$ pwd

/

$ cd /home/oracle

$ pwd

/home/oracle

$

ls

功能:显示目录中的内容,列出当前目录中所有文件的文件名

参数说明:

a:列出目录中所有文件

d:列出所有子目录

l:列出长格式文件信息

举例:

ls –a:列出当前目录中的所有文件

$ ls -a

#UNTITLED# .dt createdbscripts oracle

..dtprofile dead_letter smit.log

.. .profile ll smit.script

.TTauthority .sh_history make.log websm.log

.Xauthority afiedt.buf mbox websm.script

$

ls –l:显示文件的详细信息

$ ls -l

total 295

-rw-r--r-- 1 201 dba 3 Sep 01 15:24 #UNTITLED#

-rw-r--r-- 1 201 dba 51 Jul 08 18:18 afiedt.buf

drwxrwxr-x 2 201 dba 512 May 08 11:49 createdbscripts

drwx------ 2 201 dba 512 Jun 19 09:27 dead_letter

drwxr-xr-x 2 201 dba 512 Sep 22 10:17 ll

-rw-r--r-- 1 201 dba 95987 Apr 18 14:51 make.log

-rw------- 1 201 dba 11174 Sep 17 09:15 mbox

drwxr-xr-x 3 201 dba 512 Sep 22 10:21 oracle

-rw-r--r-- 1 201 dba8971 Sep 20 11:08 smit.log

-rw-r--r-- 1 201 dba5437 Sep 20 11:08 smit.script

-rw-r--r-- 1 201 system 1682 Sep 02 15:18 websm.log

-rw-r--r-- 1 201 system21441 Sep 02 15:10 websm.script

$

date

功能:显示当前日期和时间,超级用户可以进行修改

举例:$ date

Mon Sep 22 10:28:26 BEIST 2003

$

wc

功能:计算文件中的行数、字数和字符数

参数说明:

c:计算字符数

l:计算行数

w:计算字数

举例:

# wc profile

13 53 381 profile

| ||

行数 字数字符数

$ wc smit.log

42211628971 smit.log

$

who

功能:列出当前系统注册的用户

举例:$who am i-- 列出当前系统使用者身份

$ who

oracle lft0Sep 22 09:05

oracle pts/0 Sep 22 10:17 (192.168.100.79)

oracle pts/4 Sep 22 09:05 (:0.0)

$ who am i

oracle pts/0 Sep 22 10:17 (192.168.100.79)

$

finger

显示当前登陆到系统中的用户的信息

举例:

# finger

Login Name TTY IdleWhenSite I

nfo

oracle ??? *l02:02 Mon 09:05

oracle ???p41:59 Mon 09:05

root???p0 Mon 11:06

# finger oracle

Login name: oracle

Directory: /usr/oracle/ora90Shell: /usr/bin/ksh

On since Sep 22 09:05:35 on lft0, 2 hours 2 minutes Idle Time

(messages off)

On since Sep 22 09:05:41 on pts/4, 1 hour 59 minutes Idle Time

from :0.0

No Plan.

#

ps

功能:显示后台进程的有关信息。单独使用ps将显示由

当前终端启动的后台进程的PID、终端号、进程已执行时间以及启动该进程的命令

语法:ps -options

参数说明:

-e:显示系统内当前运行的所有后台进程

-f:除ps所提供的信息外,还显示用户名、PPID(父进程ID)及启动时间

-l:除ps所提供的信息外,还显示 User ID, PPID 和进程优先级

例:

# ps

PIDTTY TIME CMD

803034 pts/0 0:00 -ksh

917524 pts/0 0:00 ps

# ps -ef

UID PIDPPID CSTIMETTY TIME CMD

root 1 0 0 09:03:04 - 0:00 /etc/init

root 90262 1 0 09:03:42 - 0:00 /usr/ccs/bin/shlap64

root 106572 139368 0 09:03:30 - 0:01 /usr/lpp/X11/bin/X -D /usr

oracle 123030 155720 0 09:05:36 - 0:00 dtwm

root 139368 1 0 09:03:29 - 0:00 /usr/dt/bin/dtlogin -daemo

oracle 155720 172088 0 09:05:35 - 0:00 /usr/dt/bin/dtsession

root 163946 245824 0 09:04:28 - 0:00 /usr/sbin/rsct/bin/rmcd -r

root 172088 139368 0 09:03:30 - 0:00 dtlogin <:0> -daemo

oracle 180378 188526 0 09:06:20 pts/4 0:00 -ksh

root 188526 483470 0 09:06:10 pts/4 0:00 -ksh

root 196670 303186 0 09:04:34 - 0:00 rpc.ttdbserver 100083 1

root 204866 245824 0 09:04:34 - 0:00 /usr/sbin/rsct/bin/IBM.Aud

oracle 221370 581780 0 09:05:41 - 0:03 /usr/dt/bin/dtterm

root 229440 1 0 09:03:41 - 0:01 /usr/sbin/syncd 60

root 237626 1 0 09:03:42 - 0:00 /usr/lib/errdemon

root 245824 1 0 09:03:47 - 0:00 /usr/sbin/srcmstr

root 262240 245824 0 09:03:50 - 0:00 /usr/sbin/syslogd

root 278642 245824 0 09:04:28 - 0:00 /usr/sbin/rsct/bin/ctcasd

root 286806 245824 0 09:04:30 - 0:00 /usr/sbin/rsct/bin/IBM.CSM

oracle 295050 1 0 09:07:03 - 0:00 ora_dbw0_ORCL

root 303186 245824 0 09:03:59 - 0:00 /usr/sbin/inetd

root 311380 245824 0 09:03:53 - 0:00 sendmail: accepting connec

root 319566 245824 0 09:03:56 - 0:00 /usr/sbin/portmap

root 327760 245824 0 09:04:02 - 0:00 /usr/sbin/snmpd

root 335954 245824 0 09:04:06 - 0:00 /usr/sbin/dpid2

root 344150 245824 0 09:04:09 - 0:00 /usr/sbin/hostmibd

oracle 368788 1 0 11:09:35 - 0:00 oracleORCL (LOCAL=NO)

root 376946 1 0 09:04:18 - 0:00 /usr/sbin/cron

root 385122 245824 0 09:04:12 - 0:00 /usr/sbin/biod 6

oracle 393320 1 0 09:07:03 - 0:00 ora_reco_ORCL

daemon 401510 245824 0 09:04:15 - 0:00 /usr/sbin/rpc.statd

root 409726 1 0 09:04:28 - 0:00 /usr/bin/itesmdem itesrv.i

root 417902 245824 0 09:04:18 - 0:00 /usr/sbin/rpc.lockd

建议使用最新的火狐浏览器以便获得更流畅更安全的浏览体验

以下是具有比较大功能改动的更新版本的更新内容介绍,从27以后到47的版本

Mozilla Firefox 47新功能

同步标签页:

在今年2月份,Mozilla的开发者宣布推出名为“Syncd Tabs”的新功能。正如名字所示,这项新功能允许任何用户登陆之后通过同步功能在其他Firefox设备上访问已经打开的标签页。

全新的about:performance页面

自定义用户代理脚本:

该项功能于今年3月份上线,通过访问浏览器的工具-》网页开发者工具-》响应式设计视图激活。访问该页面最简单的方式是通过CTRL+SHIFT+M方式来访问激活。

更好的视频支持

其他改善:

Firefox 47中其他的重要改善是移除了Firefox的点击激活插件白名单功能。所有的插件都需要“点击激活”,如果用户所访问的页面需求插件则需要用户逐个点击激活。

Mozilla Firefox 46.0

是小型增量更新版本,改善了WebRTC API的稳定性和性能,为HTML5支持document.elementsFromPoint,且为Web Crypto API添加了对HKDF的支持。

Mozilla Firefox 45

本次更新最大改进在于Linux版本整合GTK3,并优化了同步系统,Hello功能已经可以共享当前的标签页,在访问多国文字的域名后缀系统的不兼容问题也已经被彻底解决,标签组功能也在这一版本中被删除。

Mozilla Firefox 41

最大的改进是加入了一个名为Pocket的在线收藏夹功能,并开始支持TSF文本服务框架,引入了新的会话恢复页面,Firefox账户现已

可以设定头像,并且Firefox Hello开始支持即时通信,而地址栏图标favicon开始支持SVG格式。

Mozilla Firefox 39.0

39版本的更新在性能上改进不大,新版改善了Firefox Hello的支持,并对浏览器的通信性能带来了改进,同时增加了多种肤色的Emoji的支持。

Mozilla Firefox 38.0

除了继续优化对64位的支持,增加了对HTML 5的支持改进,带来了新的基于标签的设置界面,最大的改进是原生支持Ruby字符

Mozilla Firefox 34

该版本带来了多个功能上的大变动,比如改进搜索栏、优化主题切换、实验性的‘Hello’聊天客户端

Mozilla Firefox 31

新版引入沉浸式搜索框、全新Gecko 31内核、支持访问ogg和pdf格式的文档等功能特性

Mozilla Firefox 29

1、新UI界面,Firefox 29中采用了更简洁、功能丰富的用户界面,例如默认的起始页,展示常用的功能区:下载、书签、历史、附加组件、同步、设置等;标签页加入平滑效果,未激活的标签页自动隐藏到后台。

2、高度自定义功能区,在Firefox 29中,主菜单从原先左上角移至右侧,用户可以定制该功能区的工具栏,方便快速定位开启功能。支持添加移除相应的工具栏或者功能按钮,例如:保存页面、历史、全屏、查询、隐私模式等。

3、新版Firefox云同步,在火狐29中,Mozilla加入新版云同步功能,采用用户名+密码的认证机制,推出Firefox专有账户,支持在桌面端、移动端设备同步相应的个人数据

Mozilla Firefox 28

该版本移除了Modern版Firefox Touch预览版,是火狐开发历程中最后一款采用经典界面的版本

支持, *** 作方法:

1). *** 作系统版本:

# oslevel -s

7100-01-06-1241

给rootvg做镜像:

# lsdev -Cc disk  --  #查看系统盘的分配情况

hdisk0 Available 07-08-00 SAS Disk Drive

hdisk1 Available 07-08-00 SAS Disk Drive

hdisk2 Available 07-08-00 SAS Disk Drive

# chdev -l hdisk1 -a pv=yes --#将hdisk1配置为PV

hdisk1 changed

# extendvg -f rootvg hdisk1  --#将hdisk1配置入rootvg中(可以加-f参数强制执行添加到rootvg中的 *** 作)

# mirrorvg rootvg

0516-1804 chvg: The quorum change takes effect immediately.

0516-1126 mirrorvg: rootvg successfully mirrored, user should perform

      bosboot of system to initialize boot records.  Then, user must modify

      bootlist to include:  hdisk1 hdisk0.

#  bosboot -a -d /dev/hdisk1 --#将引导信息加入新盘中

bosboot: Boot image is 53276 512 byte blocks.

# bootlist -m normal hdisk0 hdisk1 --更改启动顺序

# lsvg -l rootvg

rootvg:

LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT

hd5                 boot       1       2       2    closed/syncd  N/A

hd6                 paging     33      66      2    open/syncd    N/A

hd8                 jfs2log    1       2       2    open/syncd    N/A

hd4                 jfs2       2       4       2    open/syncd    /

hd2                 jfs2       5       10      2    open/syncd    /usr

hd9var              jfs2       1       2       2    open/syncd    /var

hd3                 jfs2       39      78      2    open/syncd    /tmp

hd1                 jfs2       1       2       2    open/syncd    /home

hd10opt             jfs2       1       2       2    open/syncd    /opt

hd11admin           jfs2       1       2       2    open/syncd    /admin

lg_dumplv           sysdump    6       12      2    open/syncd    N/A

livedump            jfs2       1       2       2    open/syncd    /var/adm/ras/livedump

安装CDE图形界面:

#smit install_bundle

安装路径选择/dev/cd0

INPUT device / directory for software [/dev/cd0]

安装选项选择CDE,如

# Bundle (Locations)

AllDevicesKernels

Alt_Disk_Install

App-Dev

CC_EVAL.DocServices

CC_EVAL.Graphics

CDE

DocServices

GNOME

最后选择安装设置,如。

* INPUT device / directory for software /dev/cd0

* BUNDLE CDE

* SOFTWARE to install [all]

……

ACCEPT new license agreements? yes

回车执行,安装提示插入第二张光盘,直到最后安装执行完成。

启动CDE

a、在AIX启动时自动启动CDE。使用root用户登录,并在命令行中执行:

# /usr/dt/bin/dtconfig -e

b、在命令行中启动CDE:

# /etc/rc.dtexit

# /usr/dt/bin/dtlogin -daemon

c、确认CDE已经启动:

# ps -ef |grep dtlogin

# netstat -an |grep 177

2).修改系统时间和时区:

3).创建oracle用户和用户组:

# id oracle

uid=202(oracle) gid=201(oinstall) groups=402(dba),403(oper)

4)创建安装oracle数据库的目录:

创建datavg

#mkdir /u01

#mklv -t jfs2 -y lv_databack datavg 100G

-t 为逻辑卷类型

-y为逻辑卷名字

datavg是指定卷组

#crfs -v jfs2 -d lv_databack -A yes -m /databack

-v 为文件系统的类型

-d为逻辑卷名字

-A 为系统重启后自动挂载

-m为挂载的目录

#mount /u01

# df -g /u01

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

/dev/lv_u01      100.00     83.91   17%    42585     1% /u01

$ mkdir -p /u01/app/oracle/product/11.2.0/db_1

修改目录权限

修改oracle环境变量:

export ORACLE_SID=ORCL

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export PATH=$PATH:$ORACLE_HOME/bin

生效:

$ ./.profile

5)网卡绑定:

绑定前:

# lsdev -Cc adapter

ent0    Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent1    Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

绑定方法:smitty etherchannel

绑定后,多出了ent2网卡

# lsdev -Cc adapter | grep ent

ent0    Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent1    Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent2    Available       EtherChannel / IEEE 802.3ad Link Aggregation

6)hosts文件:

# cat /etc/hosts | grep oracle

192.168.1.98    oracle

7)扩展交换分区:

chps -s 3 hd6 交换分区

# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type Chksum

hd6             hdisk0            rootvg       16896MB     1   yes   yes    lv     0

安装基本条件:

The following operating system filesets are required for AIX 7.1:

bos.adt.base

bos.adt.lib

bos.adt.libm

bos.perf.libperfstat

bos.perf.perfstat

bos.perf.proctools

xlC.rte.11.1.0.2 or later

gpfs.base 3.3.0.11 or later

系统其它设置

default:

      fsize = -1

      core = -1

      cpu = -1

      data = -1

      rss = -1

      stack = -1

      nofiles = -1

2.4系统参数文件lsattr -EH -l sys0 -a ncargs    检查内核参数ncargs的值

lsattr -EH -l sys0 -a maxuproc  检查内核参数maxuproc的值

ioo -o aio_maxreqs              在AIX7.1中检查内核参数maxreqs的值

修改命令:

chdev -l sys0 -a ncargs=256

chdev -l sys0 -a maxuproc=16384    

ioo -o aio_maxreqs=65536              在AIX6.1中检查内核参数maxreqs的值

修改命令:

no -p -o tcp_ephemeral_low=9000

no -p -o tcp_ephemeral_high=65500

no -p -o udp_ephemeral_low=9000

no -p -o udp_ephemeral_high=65500

no -p -o udp_sendspace=655360

no -p -o udp_recvspace=655360

no -p -o tcp_sendspace=655360

no -p -o tcp_recvspace=655360

no -p -o rfc1323=1

no -p -o sb_max=1310720

no -r -o ipqmaxlen=512

上传oracle安装镜像:

jar xvf 镜像.ZIP。

安装,,,

遇到INS-30060错误,解决办法:# chmod 775 -R /tmp/CVU_11.2.0.3.0_oracle、

安装完成:

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jan 29 14:17:59 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>!oslevel

7.1.0.0

补充:AIX挂载LINUX的NFS文件报错解决:

# showmount -e 192.168.1.13

export list for 192.168.1.13:

/var/ftp/software *.*

# mount 192.168.1.13:/var/ftp/software /software

mount: 1831-008 giving up on:

192.168.1.13:/var/ftp/software

vmount: Operation not permitted.

解决办法:

#  nfso -o nfs_use_reserved_ports=1

Setting nfs_use_reserved_ports to 1

# mount 192.168.1.13:/var/ftp/software /software

# df -g /software

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

192.168.1.13:/var/ftp/software   1574.90    948.00   40%    73951     1% /software


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7114286.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-01
下一篇2023-04-01

发表评论

登录后才能评论

评论列表(0条)

    保存