全文検索:
- 32_CentOSでiSCSI環境構築
- > # tgtadm --lld iscsi --op new --mode target --tid 0 --targetname iqn.2014-03.storage-server:sdb1 </... tgtadm --lld iscsi --op new --mode logicalunit --tid 0 --lun 1 --backing-store /dev/sdb1 </code> ===... > # tgtadm --lld iscsi --op bind --mode target --tid 0 --initiator-address 192.168.10.101 # tgtadm --lld iscsi --op bind --mode target --tid 0 --initiator-address 192.168.10.0/24 </code> ==
- 06 sshでパスワードなしにログインするには
- ===== ①ログイン元で鍵作成 ===== 下記で、$HOME/.ssh/ディレクトリに秘密鍵(id_rsa)と公開鍵(id_rsa.pub)が作成される。 <color red>※ログイン元(ユーザ:hoge2)のユーザで作成</color> <code console> hoge2@ssh-ho... er file in which to save the key (/home/nori/.ssh/id_rsa): ←[Enter]キー Enter passphrase (empty for no p... identification has been saved in /home/nori/.ssh/id_rsa. Your public key has been saved in /home/nori
- 07 秘密鍵から公開鍵を確認する方法
- 開鍵確認 ==== <code console> $ ssh-keygen -y -f .ssh/id_rsa </code> ==== 秘密鍵と公開鍵の合致確認 ==== 下記の2つが、合致すればOKです。 <code console> $ ssh-keygen -y -f .ssh/id_rsa ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5ezNi1Wjz... P9qshjUWqjw== </code> <code console> $ cat .ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5ezN... e console> $ mkdir ~/.ssh $ cp private.key ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa $ cp public.key ~/
- 75 Proftpd
- /usr/local/proftpd/var/proftpd.pid PassivePorts 7000 7030 Masquer... --file=/etc/proftpd.passwd \ --name ftp_user \ --uid=1000 --gid=1000 \ --home=/var/www/vhost/hogehoge \ --shell=/sbin/nologin </code> === ユーザ削除 === Auth... ftpd/sbin/proftpd ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill -TERM $MAINPID PIDFile=/usr/lo
- 30 NFSサーバ
- de> ==== root_squash ==== root_squashを設定した場合は、uid/gid が 0 のリクエストを annonymous uid/gid にマッピングする。 ※つまりrootでアクセスしないようにして、セキュリティ(誤って削除されないように)を保つ意味です。 このオプションは、 root 以外の uid には適用されない。 =
- 29 TGT で thin provision
- tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --backing-store /mnt/disk.tgt ===== 3.... adm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 --params thin_provisioning=1 ===== 4... LUN: 1 Type: disk SCSI ID: IET 00010001 SCSI SN: beaf11 ... ==== クライアントから接続確認 ==== [[01_linux:01_net:31_iscsid]]で接続 今回はsdcで接続している状況で説明 <code> # ll /dev/disk/b
- 43 reposync リポジトリコピー
- m * updates: ty1.mirror.newmediaexpress.com repo id repo name... /var/www/html/repo/ オプション ^オプション^ 意味^ |-r REPOID, --repoid=REPOID| 対象リポジトリ | | -n, --newest-only | 最新分だけ| |-p DESTDIR, --download_path=DESTDIR| ダウンロードディレクトリ| <
- ipmitool Server内から、IPMI IP確認
- Gateway MAC : 00:00:00:00:00:00 802.1q VLAN ID : Disabled 802.1q VLAN Priority : 0 R... === ユーザの一覧確認 ===== <code> # ipmitool user list 1 ID Name Callin Link Auth IPMI Msg C... ool user set name 2 admin # ipmitool user list 2 ID Name Callin Link Auth IPMI Msg Channel P... code> ===== 権限追加 ===== ipmitool user priv [user id] [priv] [channel] <code> # ipmitool user priv 2 4
- wheelグループ以外suできないようにする
- required /lib/security/$ISA/pam_wheel.so use_uid ↓ # Uncomment the followin... required /lib/security/$ISA/pam_wheel.so use_uid これでwheelグループに所属していないユーザはsuできない。 </code> ====== ... sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user... group. #wheelグループに属していると、パスワード有りでsuできる #auth required pam_wheel.so use_uid </code>
- 05_公開鍵をリモートホストに登録(ssh-copy-id)
- ====== 05_公開鍵をリモートホストに登録(ssh-copy-id) ====== リモートホストにログインして、ファイルに書き込んで、という作業を自動で行ってくれます。 [[01_linux:... hd鍵|]]を省略できる便利コマンドです。 公開鍵を登録 <code console> $ ssh-copy-id -i .ssh/id_rsa.pub user@remote_host </code>
- 14 rsync
- er_args = --daemon log_on_failure += USERID } </code> === hosts.allowの修正 === アクセス許可のネットワーク... logging = true auth users = backup list = true uid = root gid = root [www] comment = html contents path = /var/www </code> === secretsの用意 === <code>
- 40 CentOS VLAN tag
- cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD eth0.210 | 210 | eth0 </code> ===== ③network-s... 下を追加 === <code> VLAN=yes VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD </code> === 1.eth0は、インターフェースだけ用意 === <co
- 51 Heartbeat + Pacemaker + galera(3 server)
- 書いてあげる [[https://bugzilla.redhat.com/show_bug.cgi?id=1028127]] <code console> # vi /etc/init.d/heartbe... beat:mysql \ params config="/etc/my.cnf" \ pid="/var/run/mysqld/mysqld.pid" \ socket="/var/lib/mysql/mysql.sock" \ binary="/usr/bin/mysqld_s
- tcで帯域制限(htb)
- Running: tc class add dev bond1 parent 1: classid 1:5 htb rate 50Mbit ceil 50Mbit mtu 33000 Runni... nd1 protocol ip parent 1:0 prio 1 handle 5 fw flowid 1:5 ===== 削除 ===== <code> # tc qdisc del dev tl... r parent 1: protocol ip pref 1 fw handle 0x5 classid 1:5 </code> [[https://linuxjf.osdn.jp/JFdocs/Adv
- 16 unboundでキャッシュサーバ
- me-ascii: yes pidfile: "/var/run/unbound/unbound.pid" root-hints: "/etc/unbound/named.cache" hide-iden... omain: yes harden-referral-path: yes use-caps-for-id: no unwanted-reply-threshold: 10000000 prefetch: