ページ「MediaWiki:Sidebar」と「コマンドとか」の間の差分

提供:あべたけの覚書
(ページ間の差分)
ナビゲーションに移動 検索に移動
(ページの作成:「 * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki * Linux ** コマンドとか|コマンドとか * CentOS ** CentOS Howto|Howto ** CentOS RPM|RPM ** CentOS yum|yum ** CentOS vim|vim ** CentOS 6.5|6.5 ** CentOS 6.10|6.10 ** メモ|メモ * ntp ** ntp Howto|Howto * OpenSSL ** OpenSSL Howto|Howto ** OpenSSL 1.0.1e|1.0.1e * OpenSSH ** OpenSSH 6.1p1|6.1p1 * OpenSSH (by RPM) *…」)
 
(ページの作成:「== 起動・終了 == === 再起動 === # reboot === シャットダウン === # shutdown == メモリ状況を調べる == === free === $ free total used free shared buffers cached Mem: 505904 455412 50492 0 42016 338528 -/+ buffers/cache: 74868 431036 Swap: 1015800 0 1015800 >実質的な残りメモリ量は431036 === top === $ top top - 14:29:47 up 13:13, 1…」)
 
1行目: 1行目:
== 起動・終了 ==
=== 再起動 ===
# reboot
=== シャットダウン ===
# shutdown


* navigation
== メモリ状況を調べる ==
** mainpage|mainpage-description
=== free ===
** recentchanges-url|recentchanges
$ free
** randompage-url|randompage
              total      used      free    shared    buffers    cached
** helppage|help-mediawiki
Mem:        505904    455412      50492          0      42016    338528
-/+ buffers/cache:      74868    431036
Swap:      1015800          0    1015800
>実質的な残りメモリ量は431036
=== top ===
$ top
top - 14:29:47 up 13:13,  1 user,  load average: 0.05, 0.01, 0.00
Tasks:  78 total,  1 running,  77 sleeping,  0 stopped,  0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    505904k total,  456156k used,    49748k free,    42296k buffers
Swap:  1015800k total,        0k used,  1015800k free,  338520k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15  0  2040  632  544 S    0  0.1  0:01.21 init
    2 root      RT  0    0    0    0 S    0  0.0  0:00.00 migration/0
    3 root      34  19    0    0    0 S    0  0.0  0:00.00 ksoftirqd/0
    4 root      RT  0    0    0    0 S    0  0.0  0:00.00 watchdog/0
    5 root      RT  0    0    0    0 S    0  0.0  0:00.00 migration/1
    6 root      34  19    0    0    0 S    0  0.0  0:00.00 ksoftirqd/1
    7 root      RT  0    0    0    0 S    0  0.0  0:00.00 watchdog/1
    8 root      10  -5    0    0    0 S    0  0.0  0:00.00 events/0
    9 root      10  -5    0    0    0 S    0  0.0  0:00.00 events/1
    10 root      17  -5    0    0    0 S    0  0.0  0:00.00 khelper
=== vmstat ===
$ vmstat 5
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
  r  b  swpd  free  buff  cache  si  so    bi    bo  in  cs us sy id wa st
  0  0      4 143220  31088 214164    0    0    4    8  60  28  0  0 99  0  0
  0  0      4 143220  31088 214164    0    0    0    3 1008  41  0  0 100  0  0
  0  0      4 143220  31096 214164    0    0    0    32 1014  53  0  0 100  0  0
  0  0      4 143220  31096 214164    0    0    0    1 1008  39  0  0 100  0  0
>5秒ごとに表示更新


* Linux
== ディレクトリ操作 ==
** コマンドとか|コマンドとか
=== ディレクトリを階層で作成 ===
$ mkdir -p ~/rpm/{BUILD,SOURCES,SPECS,SRPMS,RPMS/{i386,i486,i586,i686,noarch,ppc}}
<下記が作成される>
rpm
├ BUILD
├ SOURCES
├ SPECS
├ SRPMS
└ RPMS
    ├ i386
    ├ i486
    ├ i586
    ├ i686
    ├ noarch
    └ ppc


* CentOS
== 画面表示をログとして残す ==
** CentOS Howto|Howto
configure実行時とか
** CentOS RPM|RPM
# ./configure 2>&1 | tee configure.log.abe
** CentOS yum|yum
# make 2>&1 | tee make.log.abe
** CentOS vim|vim
# make install 2>&1 | tee install.log.abe
** CentOS 6.5|6.5
実行したディレクトリに[configure.log.abe],[make.log.abe],[install.log.abe]が作成される
** CentOS 6.10|6.10
 
** メモ|メモ
 
* ntp
** ntp Howto|Howto
 
* OpenSSL
** OpenSSL Howto|Howto
** OpenSSL 1.0.1e|1.0.1e
 
* OpenSSH
** OpenSSH 6.1p1|6.1p1
 
* OpenSSH (by RPM)
** OpenSSH 6.5p1(RPM)|6.5p1 (RPM)
** OpenSSH 8.0p1(RPM)|8.0p1 (RPM)
 
* PostgreSQL (by RPM)
** PostgreSQL 11.2(RPM)|11.2 (RPM)
 
* APR (by RPM)
**APR 1.7.0(RPM)|1.7.0 (RPM)
 
* APR-util (by RPM)
** APR-util 1.6.1(RPM)|1.6.1 (RPM)
 
* Apache (by RPM)
** Apache 2.4.39(RPM)|2.4.39 (RPM)
 
* Subversion
** Subversion 1.12.0|1.12.0
 
 
---
 
* Apache
** Apache Howto|Howto
** Apache 2.2.21|2.2.21
 
* Ruby
** Ruby 1.9.3|1.9.3
 
* Ruby (by RPM)
** Ruby 2.0.0(RPM)|2.0.0 (RPM)
 
* Python
** Python 2.6.2|2.6.2
 
* Subversion (by RPM)
** Subversion 1.8.8(RPM)|1.8.8 (RPM)
 
* Git
** Git 1.7.7.4|1.7.7.4
 
* expat
** expat 2.1.0|2.1.0
 
* neon
** neon 0.29.6|0.29.6
 
* PostgreSQL
** PostgreSQL 9.2.2|9.2.2
 
* readline
** readline 5.2|5.2
 
* psycopg2
** psycopg2 2.0.11|2.0.11
 
* PHP4
** PHP 4.4.8|4.4.8
 
* ncurses
** ncurses 5.5|5.5
 
 
* SEARCH
* TOOLBOX
* LANGUAGES
 
* SEARCH
* TOOLBOX
* LANGUAGES

2023年5月11日 (木) 09:07時点における最新版

起動・終了

再起動

# reboot

シャットダウン

# shutdown

メモリ状況を調べる

free

$ free
             total       used       free     shared    buffers     cached
Mem:        505904     455412      50492          0      42016     338528
-/+ buffers/cache:      74868     431036
Swap:      1015800          0    1015800

>実質的な残りメモリ量は431036

top

$ top
top - 14:29:47 up 13:13,  1 user,  load average: 0.05, 0.01, 0.00
Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    505904k total,   456156k used,    49748k free,    42296k buffers
Swap:  1015800k total,        0k used,  1015800k free,   338520k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15   0  2040  632  544 S    0  0.1   0:01.21 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   10 root      17  -5     0    0    0 S    0  0.0   0:00.00 khelper

vmstat

$ vmstat 5
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      4 143220  31088 214164    0    0     4     8   60   28  0  0 99  0  0
 0  0      4 143220  31088 214164    0    0     0     3 1008   41  0  0 100  0  0
 0  0      4 143220  31096 214164    0    0     0    32 1014   53  0  0 100  0  0
 0  0      4 143220  31096 214164    0    0     0     1 1008   39  0  0 100  0  0

>5秒ごとに表示更新

ディレクトリ操作

ディレクトリを階層で作成

$ mkdir -p ~/rpm/{BUILD,SOURCES,SPECS,SRPMS,RPMS/{i386,i486,i586,i686,noarch,ppc}}

<下記が作成される>
rpm
├ BUILD
├ SOURCES
├ SPECS
├ SRPMS
└ RPMS
    ├ i386
    ├ i486
    ├ i586
    ├ i686
    ├ noarch
    └ ppc

画面表示をログとして残す

configure実行時とか

# ./configure 2>&1 | tee configure.log.abe
# make 2>&1 | tee make.log.abe
# make install 2>&1 | tee install.log.abe

実行したディレクトリに[configure.log.abe],[make.log.abe],[install.log.abe]が作成される