全文検索:
- BINDでキャッシュサーバ @01_linux:01_net
- nge round left 70%> # yum -y install bind caching-nameserver bind-chroot </box> ===== named.conf用意 ===== <box orange round left 90%> # cp -p /var/named/chroot/etc/named.caching-nameserver.conf /var/named/chroot/etc/named.conf </box> ===== named.conf ===
- 51 MySQLベンチマーク(mysqlslap) @01_linux:11_データベース:01_mysql
- f Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. R... generated tables. --auto-generate-sql-load-type=name Specify test load type: mi... on in server/client protocol. -c, --concurrency=name Number of clients to simulate for query to run. --create=name File or string to use create tables. --cr
- 16 Kubernetes + DRBD Linstor @06_virtualization:05_container
- 環境 ====== 今回はKubernetesのworkerノード3台で、Linstor ^ name ^ IP ^ Disk ^ DRBD用 ^ |node1|172.16.0.65|/dev/sda... | StoragePool | Node | Driver | PoolName | FreeCapacity | TotalCapacity | CanSnapshots | State | SharedName | |============================================... esource | StoragePool | VolNr | MinorNr | DeviceName | Allocated | InUse | State | |=========
- color plugin @dokuwiki:plugin
- > ===== インストール ===== pluginフォルダ内にsyntax.phpとcolornames.phpを作成 # cd dokuwiki/lib/plugin/ # mkdir col... efined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); if(!defined('DOKU_PL... 'date' => '2009-06-24', 'name' => 'Color Plugin with ODT', 'des... ])) { $stylename = "ColorizedText".count($this->odt_styles);
- 2021.08.03 KVM IOPS limit @50_dialy:2021:08
- <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> ... <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain... t body='<VM><ID>300</ID><UID>0</UID><GID>0</GID><UNAME>oneadmin</UNAME><GNAME>oneadmin</GNAME><NAME>matsuitest</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M
- MySQLコマンド @02_freebsd:04_database:01_mysql
- INSERT ON *.* TO user; データベースレベル GRANT ALL ON db_name.* TO user; GRANT SELECT, INSERT ON mydb.* TO user... '; </code> ==== ユーザ名&ホストの変更 ==== <code> mysql> RENAME USER 'FROM_USER'@'192.168.0.%' TO 'TO_USER'@'192.... BLE hoge_tbl ( id int PRIMARY KEY AUTO_INCREMENT, name text ); </code> ==== テーブルのコピー ==== <code console... code> ==== テーブル名変更 ==== <code> ALTER TABLE tbl_name RENAME [TO] new_tbl_name; </code> ==== テーブル情報を表示(
- 20 Kubernetes GlusterFS Galera Wordpress @06_virtualization:05_container
- apiVersion: v1 kind: PersistentVolume metadata: name: wordpress-pv labels: name: wordpress-pv spec: accessModes: - ReadWriteMany capacity: s... labels: io.kompose.service: wordpress-pvc name: wordpress-pvc spec: accessModes: - ReadWrite... storage: 1Gi selector: matchLabels: name: wordpress-pv status: {} </code> === 作成 ===
- 2023.12.14 React-adminとDjangoの連携 @50_dialy:2023:12
- b import models class Product(models.Model): name = models.CharField(max_length=200) price = mo... ield() def __str__(self): return self.name </code> === マイグレーションファイル作成 === $ docker-comp... s = [ migrations.CreateModel( name='Product', fields=[ (... =True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField
- fio @01_linux:09_ベンチマーク
- ンチマーク ===== ==== シーケンシャルwrite ==== # fio -filename=/tmp/fio2g -direct=1 -rw=write -bs=4k -size=2G -numjobs=64 -runtime=10 -group_reporting -name=fio ==== ランダムwrite ==== # fio -filename=/tmp/fio2g -direct=1 -rw=randwrite -bs=4k -size=2G -numjobs=64 -runtime=10 -group_reporting -name=fio ==== シーケンシャルread ==== # fio -filename=/tm
- Formatting Syntax @wiki
- square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. [[doku>pagename|Wiki pagenames]] are converted to lower
- 18 Kubernetes GlusterFS @06_virtualization:05_container
- ====== 18 Kubernetes GlusterFS ====== ^ hostname ^ IP ^ |g-master|172.16.0.103| |g-work01|172.16.0.93| ... .yaml> apiVersion: v1 kind: Endpoints metadata: name: glusterfs labels: storage.k8s.io/name: glusterfs storage.k8s.io/part-of: kubernetes-complete... - addresses: - ip: 172.16.0.93 hostname: g-work01 - ip: 172.16.0.153 hostna
- PostgreSQLコマンド @02_freebsd:04_database:02_posgresql
- QLユーザは、データベースの作成が許可されます。 | |-U|[接続ユーザ名]| |(--username)|PostgreSQLに接続するユーザ名を指定します。| |~|上記コマンドではpostgres(... ==== postgres=# select * from pg_shadow ; usename | usesysid | usecreatedb | usesuper | usecatupd ... er)|[オーナ名]|作成するデータベースの所有者となるユーザを指定します。| |-U(--username)|[接続ユーザ名]|PostgreSQLに接続するユーザ名を指定します。| ===== Post... スタム、tがtar、pがテキスト) -例(バックアップ) pg_dump database_name > database_name.sql -例(リストア) createdb にてdatab
- 2023.06.03 Django アプリ追加 @50_dialy:2023:06
- (level=logging.INFO) logger = logging.getLogger(__name__) class View(TemplateView): template_name = "test.html" def get(self, request): cont... return render(self.request, self.template_name, context) def post(self, request): co... on': request.POST.get('action'), 'name1': request.POST.get('name1'), 'na
- 41 CentOS7 NIC名変更 @01_linux:01_net
- それをethに変更してみます。 ===== grub変更 ===== grubに「biosdevname=0 net.ifnames=0」を追加 <code> # cp -p /etc/default/grub /etc/default/grub_yyyymmdd # vi /etc/default/grub ... ntos/root rd.lvm.lv=centos/swap rhgb quiet biosdevname=0 net.ifnames=0" GRUB_DISABLE_RECOVERY="true" </code> ==== 新しいgrub.cfg作成 ==== <code> # cp -p /boot/gru
- 01 PostgreSQL streaming replica @01_linux:11_データベース:02_postgresql
- で高可用性と読取に対するスケールアウトを実現するストリーミングレプリケーションを作成 ^hostname^IP^ |pg1001|172.16.0.51| |pg1002|172.16.0.52| |pg... List of databases Name | Owner | Encoding | Collate | Ctype | Ac... esql.auto.conf primary_conninfo = へ追加 application_name=postgresql ## Secondaryは下記をコメントアウト # grep synchronous_standby_names /data/postgresql.conf synchronous_standby_names