<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://shiyoka.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://shiyoka.com/feed.php">
        <title>ClownWiki - centos</title>
        <description></description>
        <link>https://shiyoka.com/</link>
        <image rdf:resource="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-08T14:28:55+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:account&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:boot_display&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:centos_nginx_php&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:clam_antivirus&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:commands&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:command_history&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:cron_anacron_on_centos6&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:cron_setting&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:dnsmasq&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:environment&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:flare&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:free_command&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:fstab&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:http24-on-centos6&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:iptables&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:kernelupdate&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:lamp_build&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:logrotate&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:mail_command&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:memcache&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:network_config&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:openssl_verup&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:postfix&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:process_count&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:root_password&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:rpm&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:rps_rfs&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:scp_command&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:selinux&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:shellscript&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:ssh&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:ssh_tunnel&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:ssl_self_certificate&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:vim&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:webmin&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:xen&amp;rev=1739713983&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=centos:yum&amp;rev=1739713983&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>ClownWiki</title>
        <link>https://shiyoka.com/</link>
        <url>https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:account&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>account</title>
        <link>https://shiyoka.com/doku.php?id=centos:account&amp;rev=1739713983&amp;do=diff</link>
        <description>アカウントに関する基本的な操作

アカウント追加


# useradd taro
# useradd hanako


パスワード設定


# passwd taro	← パスワード「taro」
# passwd hanako	← パスワード「hanako」


sudo 設定

sudoコマンドを実行できる権限を付与</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:boot_display&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>boot_display</title>
        <link>https://shiyoka.com/doku.php?id=centos:boot_display&amp;rev=1739713983&amp;do=diff</link>
        <description>起動時の詳細画面を表示する

Centos6標準の起動画面は以下のようなプログレスバーが伸びていく画面ですが、この状況では起動に異常に時間がかかった場合など、何の処理を行っているのか把握できません。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:centos_nginx_php&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>centos_nginx_php</title>
        <link>https://shiyoka.com/doku.php?id=centos:centos_nginx_php&amp;rev=1739713983&amp;do=diff</link>
        <description>即効 環境構築

SELINUX

SELinux状態確認

	*  SELinux有効

# getenforce
Enforcing



	*  SELinux無効

# getenforce
Permissive



SELinux無効化


# setenforce 0


システム起動時にSELinuxを自動起動させない


# vi /etc/sysconfig/selinux
-) SELINUX=enforcing
+) SELINUX=disabled</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:clam_antivirus&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>clam_antivirus</title>
        <link>https://shiyoka.com/doku.php?id=centos:clam_antivirus&amp;rev=1739713983&amp;do=diff</link>
        <description>Clam AntiVirus

Clam AntiVirusインストール


# yum -y install clamd


Clam AntiVirus設定

root権限で動作するようにする


# vi /etc/clamd.conf



-) User clam
+) #User clam


ウィルスデータのセルフチェック間隔を変更する</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:commands&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>commands</title>
        <link>https://shiyoka.com/doku.php?id=centos:commands&amp;rev=1739713983&amp;do=diff</link>
        <description>コマンドのメモ書き

rpm


# rpm -ivh ～.rpm


	*  -i ： インストール。
	*  -U ： アップグレード。インストール済みパッケージはアップグレードする。未インストールは、新たにそのパッケージをインストールする。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:command_history&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>command_history</title>
        <link>https://shiyoka.com/doku.php?id=centos:command_history&amp;rev=1739713983&amp;do=diff</link>
        <description>コマンド履歴（history）

コマンド履歴の増減

現在の設定を確認（環境変数）


# printenv
～
HISTSIZE=1000
～


設定変更


vi /etc/profile



HISTSIZE=10000                         # 現在使用中の bash の履歴数
HISTFILESIZE=10000                     # ~/.bash_history に記録する履歴数
# HISTCONTROL=ignoredups                 # 連続して同じコマンドを実行したときに、 履歴に残るのは1つだけ
# HISTCONTROL=ignorespace                # 最初がスペースで始まるコマンドの場合に、履歴に残さない
HISTCONTROL=ignoreboth                 # ignoredups も ignorespace も両方設定
HISTTIMEFORMAT=&#039;%y/%m/%d %H:%M:%S  &#039;   # 日付、時間
HISTIGNOR…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:cron_anacron_on_centos6&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cron_anacron_on_centos6</title>
        <link>https://shiyoka.com/doku.php?id=centos:cron_anacron_on_centos6&amp;rev=1739713983&amp;do=diff</link>
        <description>CentOS6のcronとanacronの処理

初期の配置


/
└── etc
     ├── cron.d
     │   └── 0hourly : 毎時1分に /etc/cron.hourly 以下を実行
     ├── cron.daily
     │   └── logrotate
     ├── cron.deny
     ├── cron.hourly
     │   └── 0anacron : anacron 実行
     ├── cron.monthly
     │   └── 
     ├── cron.weekly
     │   └── 
     └── crontab : 初期値は空</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:cron_setting&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cron_setting</title>
        <link>https://shiyoka.com/doku.php?id=centos:cron_setting&amp;rev=1739713983&amp;do=diff</link>
        <description>cron の設定

書式

分 時 日 月 曜日 実行コマンド

	*  分 0-59
	*  時 0-23
	*  日 1-31
	*  月 1-12
	*  曜日 0-7 (0または7は日曜日）

e.g. 00 3 * * 1 /root/aplog.sh

書き方


# crontab -e


vi が起動するので、設定を書いて終了。
（ 編集される対象ファイルは「/var/spool/cron/root」 ）</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:dnsmasq&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>dnsmasq</title>
        <link>https://shiyoka.com/doku.php?id=centos:dnsmasq&amp;rev=1739713983&amp;do=diff</link>
        <description>Dnsmasq

&lt;http://www.thekelleys.org.uk/dnsmasq/doc.html&gt;

	*  /etc/hosts を名前解決のデータベースとして使用する。
	*  DNSラウンドロビンに対応している。
	*  /etc/resolv.confに上位ネットワークのDNSサーバのIPアドレスを指定しておくと、/etc/hostsで解決できない名前解決要求を上位DNSに委譲する。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:environment&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>environment</title>
        <link>https://shiyoka.com/doku.php?id=centos:environment&amp;rev=1739713983&amp;do=diff</link>
        <description>環境変数

以下、＠ITから引用



	&quot; bashの関連ファイルには、次のようなものがあります。

   * /etc/profile
   * ~/.bash_profile
   * ~/.bash_login
   * ~/.profile
   * ~/.bashrc
   * ~/.bash_logout

ユーザーがログインすると、まず/etc/profileを読み込み、次に~/.bash_profileを読み込みます。~/.bash_profileが存在しない場合は、~/.bash_loginを読み込みます。~/.bash_loginもない場合は~/.profileを読み込みます。~/.bash_logoutは、ログアウト時に読み込まれるファイルです。…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:flare&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>flare</title>
        <link>https://shiyoka.com/doku.php?id=centos:flare&amp;rev=1739713983&amp;do=diff</link>
        <description>Flare

GREE製KVS：&lt;http://labs.gree.jp/Top/OpenSource/Flare.html&gt;

	*  memcached互換
	*  データ永続性
	*  etc

構築

○ C++標準ライブラリインストール


# yum -y install boost boost-devel


○ ストレージエンジン（tokyocabinet）インストール


# wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.46.tar.gz
# tar zxvf tokyocabinet-1.4.46.tar.gz 
# cd tokyocabinet-1.4.46
# ./configure
# make
# make install</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:free_command&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>free_command</title>
        <link>https://shiyoka.com/doku.php?id=centos:free_command&amp;rev=1739713983&amp;do=diff</link>
        <description>free コマンド


# free
             total       used       free     shared    buffers     cached
Mem:       3925044    3809668     115376          0      60580      86876
-/+ buffers/cache:    3662212     262832
Swap:      2064376          0    2064376</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:fstab&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fstab</title>
        <link>https://shiyoka.com/doku.php?id=centos:fstab&amp;rev=1739713983&amp;do=diff</link>
        <description>fstab

UUIDによるデバイスのマウント（fstab）

デバイスの接続順、認識順によってデバイス名（sda、sdb、・・・）が変わると、違うディスクにマウントされる、などが発生する場合がある。
UUIDはデバイス（ファイルシステム）に一意なので、そういった意図しないマウントを回避できる。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:http24-on-centos6&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>http24-on-centos6</title>
        <link>https://shiyoka.com/doku.php?id=centos:http24-on-centos6&amp;rev=1739713983&amp;do=diff</link>
        <description>CentOS6.xにApache httpd 2.4をインストールする

Software Collections
&lt;https://fedorahosted.org/SoftwareCollections/&gt;


# curl -s http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo &gt; /etc/yum.repos.d/epel-httpd24.repo
# yum install httpd24-httpd
...
Installed:
  httpd24-httpd.x86_64 0:2.4.6-5.el6                                                                                

Dependency Installed:
  httpd24-apr.x86_64 0:1.4.8-2.el6  httpd24-apr-util.x86_64 0:1.5.2-5.el6  httpd24-httpd-too…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:iptables&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>iptables</title>
        <link>https://shiyoka.com/doku.php?id=centos:iptables&amp;rev=1739713983&amp;do=diff</link>
        <description>iptables

設定ファイル


# vi /etc/sysconfig/iptables


設定サンプル

以下は、すべて接続を許可する設定

http（port80）


-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT


https（port443）</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:kernelupdate&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>kernelupdate</title>
        <link>https://shiyoka.com/doku.php?id=centos:kernelupdate&amp;rev=1739713983&amp;do=diff</link>
        <description>カーネルのバージョンアップ

ELREPOからダウンロード。
&lt;http://elrepo.org/tiki/tiki-index.php&gt;

現在のカーネルバージョンを確認


# uname -a
Linux kd-db12 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:18 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux


カーネルダウンロード</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:lamp_build&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>lamp_build</title>
        <link>https://shiyoka.com/doku.php?id=centos:lamp_build&amp;rev=1739713983&amp;do=diff</link>
        <description>LAMP構築

Apache Install

	*  インストール


# yum -y install httpd


	*  conf ファイル編集（=設定）


# vi /etc/httpd/conf/httpd.conf


設定サンプル

	*  起動


# /etc/rc.d/init.d/httpd start
（# service httpd start）


	*  自動起動設定</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:logrotate&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>logrotate</title>
        <link>https://shiyoka.com/doku.php?id=centos:logrotate&amp;rev=1739713983&amp;do=diff</link>
        <description>logrotate


# logrotate --help
使い方: logrotate [OPTION...] &lt;configfile&gt;
  -d, --debug               Don&#039;t do anything, just test (implies -v)
  -f, --force               Force file rotation
  -m, --mail=command        Command to send mail (instead of `/bin/mail&#039;)
  -s, --state=statefile     Path of state file
  -v, --verbose             Display messages during rotation

Help options:
  -?, --help                Show this help message
  --usage                   Display brief usage message</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:mail_command&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mail_command</title>
        <link>https://shiyoka.com/doku.php?id=centos:mail_command&amp;rev=1739713983&amp;do=diff</link>
        <description>mailコマンド

mail

mailのフロー

	*  /var/spool/mail/root にメールが届く
	*  mail コマンドでメールを確認する
	*  数字＋Enterで任意のメールを読む
	*  d数字＋Enterで任意のメールを削除
	*  h でメールリストを開く</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:memcache&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>memcache</title>
        <link>https://shiyoka.com/doku.php?id=centos:memcache&amp;rev=1739713983&amp;do=diff</link>
        <description>memcache

構築

インストール


# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5-8.el5.remi.noarch.rpm
# yum -y --enablerepo=remi,epel install memcached</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:network_config&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>network_config</title>
        <link>https://shiyoka.com/doku.php?id=centos:network_config&amp;rev=1739713983&amp;do=diff</link>
        <description>ネットワークの設定ファイル

	*  /etc/sysconfig/network
	*  /etc/sysconfig/network-scripts/ifcfg-eth0
	*  /etc/hosts
	*  /etc/resolve.conf

/etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.80.1</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:openssl_verup&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>openssl_verup</title>
        <link>https://shiyoka.com/doku.php?id=centos:openssl_verup&amp;rev=1739713983&amp;do=diff</link>
        <description>OpenSSL脆弱性対応

参考：&lt;https://www.jpcert.or.jp/at/2014/at140013.html&gt;

yumでOpenSSLをアップデート

念のため、yumキャッシュクリアしてからアップデート


# sudo yum clean all
# sudo yum update openssl


インストールしたOpenSSLを確認
バージョン確認</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:postfix&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postfix</title>
        <link>https://shiyoka.com/doku.php?id=centos:postfix&amp;rev=1739713983&amp;do=diff</link>
        <description>postfix

MTA確認


# alternatives --config mta

1 プログラムがあり &#039;mta&#039; を提供します。

  選択       コマンド
-----------------------------------------------
*+ 1           /usr/sbin/sendmail.postfix

Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:process_count&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>process_count</title>
        <link>https://shiyoka.com/doku.php?id=centos:process_count&amp;rev=1739713983&amp;do=diff</link>
        <description>実行待ちプロセスの数を確認

実行待ちプロセスの数を確認するにはtopコマンドを使用します。 

表示例


top - 14:31:16 up  5:17,  1 user,  load average: 0.00, 0.00, 0.00


「load average」の3つの数字は左から順番に1、5、15分間の実行待ちプロセス</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:root_password&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>root_password</title>
        <link>https://shiyoka.com/doku.php?id=centos:root_password&amp;rev=1739713983&amp;do=diff</link>
        <description>rootのパスワードを忘れたとき

以下の手順で、シングルユーザーモード（パスワード不要でrootログインされた状態）で起動してパスワード再設定。

起動画面で[Enter]押下



メニューが表示されたら、[e]押下</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:rpm&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rpm</title>
        <link>https://shiyoka.com/doku.php?id=centos:rpm&amp;rev=1739713983&amp;do=diff</link>
        <description>rpm index</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:rps_rfs&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rps_rfs</title>
        <link>https://shiyoka.com/doku.php?id=centos:rps_rfs&amp;rev=1739713983&amp;do=diff</link>
        <description>5.xでNICの割り込み処理のコア振り分け

現状の確認

現在のカーネルバージョンを確認


# uname -a
Linux kd-web25 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:18 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux


NICの割り込み処理が偏っていることを確認</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:scp_command&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>scp_command</title>
        <link>https://shiyoka.com/doku.php?id=centos:scp_command&amp;rev=1739713983&amp;do=diff</link>
        <description>scpコマンドが見つかりません

scpで対象サーバにファイルを転送しようとしたら怒られた。


# scp -r /root/.ssh 192.168.24.192:/root/
The authenticity of host &#039;192.168.24.192 (192.168.24.192)&#039; can&#039;t be established.
RSA key fingerprint is 07:e6:7f:fb:1f:6a:aa:7a:5a:34:20:7d:7b:ac:6d:d7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added &#039;192.168.24.192&#039; (RSA) to the list of known hosts.
root@192.168.24.192&#039;s password: 
bash: scp: コマンドが見つかりません
lost connection…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:selinux&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>selinux</title>
        <link>https://shiyoka.com/doku.php?id=centos:selinux&amp;rev=1739713983&amp;do=diff</link>
        <description>SELINUX 設定

SELinux状態確認

	*  SELinux有効

# getenforce
Enforcing



	*  SELinux無効

# getenforce
Permissive



SELinux無効化


# setenforce 0


システム起動時にSELinuxを自動起動させない


# vi /etc/sysconfig/selinux
-) SELINUX=enforcing
+) SELINUX=disabled</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:shellscript&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>shellscript</title>
        <link>https://shiyoka.com/doku.php?id=centos:shellscript&amp;rev=1739713983&amp;do=diff</link>
        <description>シェルスクリプト

ファイル・ディレクトリチェック

	*  -e file.txt
file.txtが存在しているか。
	*  -f file.txt
file.txtが存在し、通常のファイルか。
	*  -r file.txt
file.txtが存在し、読み取り可能か。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:ssh&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ssh</title>
        <link>https://shiyoka.com/doku.php?id=centos:ssh&amp;rev=1739713983&amp;do=diff</link>
        <description>SSH

鍵認証

ssh-keygenコマンドやPuTTYgenで鍵を作成すると、秘密鍵（id_rsa）と公開鍵（id_rsa.pub）が作成されます。
公開鍵はログインしたいサーバの公開鍵ファイル（authorized_keys）に登録、クライアントは秘密鍵と作成時に指定した</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:ssh_tunnel&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ssh_tunnel</title>
        <link>https://shiyoka.com/doku.php?id=centos:ssh_tunnel&amp;rev=1739713983&amp;do=diff</link>
        <description>SSHでトンネル経由でログイン

多段ssh のはなし。

-t オプション

外部のネットワークから特定のLAN内のサーバにアクセスしたい。
ただし、特定のLANにはプロキシ（踏み台）サーバを経由しないといけない。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:ssl_self_certificate&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ssl_self_certificate</title>
        <link>https://shiyoka.com/doku.php?id=centos:ssl_self_certificate&amp;rev=1739713983&amp;do=diff</link>
        <description>SSL自己証明書

自己証明書を作成する

秘密鍵

発行される証明書と対になるファイル。

e.g. パスフレーズ無し、鍵長2,048bitの秘密鍵「server.key」を作成する


[root@adm01 ~]# openssl genrsa -out server.key 2048
Generating RSA private key, 2048 bit long modulus
........................+++
...+++
e is 65537 (0x10001)
[root@adm01 ~]# ll
-rw-r--r--. 1 root root  1675 11月  4 18:05 2014 server.key
[root@adm01 ~]# cat server.key
-----BEGIN RSA PRIVATE KEY-----
～省略～
-----END RSA PRIVATE KEY-----…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:vim&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>vim</title>
        <link>https://shiyoka.com/doku.php?id=centos:vim&amp;rev=1739713983&amp;do=diff</link>
        <description>Vim

インストール


# yum install vim

～省略～
======================================================================================================================
 Package                       Arch                    Version                            Repository             Size
======================================================================================================================
Installing:
 vim-enhanced                  x86_64                  2:7.2.411-1.8.el6                  base…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:webmin&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>webmin</title>
        <link>https://shiyoka.com/doku.php?id=centos:webmin&amp;rev=1739713983&amp;do=diff</link>
        <description>Webmin

webmin(うえぶみん と呼びます）は、webベースのUNIX用のシステム管理ツールです。

構築

Perl Net::SSLeay インストール


# yum -y install perl-Net-SSLeay


iptables設定


# vi /etc/sysconfig/iptables


以下の行を追加</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:xen&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>xen</title>
        <link>https://shiyoka.com/doku.php?id=centos:xen&amp;rev=1739713983&amp;do=diff</link>
        <description>Xen

Command

	*  DomainU（ゲストOS）の起動


# xm create vt01

## コンソール付
# xm create -c vt01


	*  DomainUシャットダウン


# xm shutdown vt01
# xm shutdown -w vt01


	*  コンソール接続(アタッチ)


# xm console vt01</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=centos:yum&amp;rev=1739713983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>yum</title>
        <link>https://shiyoka.com/doku.php?id=centos:yum&amp;rev=1739713983&amp;do=diff</link>
        <description>yum index</description>
    </item>
</rdf:RDF>
