全文検索:
- 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
- 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
- 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... 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> ==== テーブル情報を表示(DESCRIBE) ==== DESCRIBE データベース名.テーブル名 ; または DESC デ
- 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
- 16 Kubernetes + DRBD Linstor @06_virtualization:05_container
- 環境 ====== 今回はKubernetesのworkerノード3台で、Linstor ^ name ^ IP ^ Disk ^ DRBD用 ^ |node1|172.16.0.65|/dev/sda... tor-master:~# kubectl get pod alpine-test -o wide NAME READY STATUS RESTARTS AGE IP ... instor https://charts.linstor.io # helm repo list NAME URL linstor https://charts.linstor.io </code> ... 認 ==== ちゃんとpodが起動してればOK <code> # kubectl get pod NAME READY S
- 01 PostgreSQL streaming replica @01_linux:11_データベース:02_postgresql
- 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 = 'postgresql' # standby servers that provide sync re
- 32 CentOS5でTLS1.2 Apache PHP @01_linux:02_www
- _xml.c:364: error: ‘apr_xml_parser’ has no member named ‘xp’ xml/apr_xml.c:365: error: ‘apr_xml_parser’ has no member named ‘xp’ xml/apr_xml.c: At top level: xml/apr_xml.c:... _xml.c:401: error: ‘apr_xml_parser’ has no member named ‘xp’ xml/apr_xml.c:402: error: ‘apr_xml_parser’ has no member named ‘xp’ xml/apr_xml.c:410: error: ‘apr_xml_parser’
- Apache バーチャルホスト一覧確認 @01_linux:02_www
- MP_VHOSTS VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: _default_:44... conf.d/ssl.conf:81) *:80 is a NameVirtualHost default server mail.flat8.co.... /etc/httpd/conf/httpd.conf:1028) port 80 namevhost mail.flat8.co.jp (/etc/httpd/conf/httpd.conf:1028) port 80 namevhost rikoji.flateight.com (/etc/httpd/conf/httpd.
- 18 Kubernetes GlusterFS @06_virtualization:05_container
- .yaml> apiVersion: v1 kind: Endpoints metadata: name: glusterfs labels: storage.k8s.io/name: glusterfs storage.k8s.io/part-of: kubernetes-complete... ce.yaml> kind: Service apiVersion: v1 metadata: name: glusterfs spec: ports: - port: 1 </code> ==... apiVersion: v1 kind: PersistentVolume metadata: name: k8s-volume-pv01 labels: name: k8s-volume-p
- 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... ID><UNAME>oneadmin</UNAME><GNAME>oneadmin</GNAME><NAME>matsuitest</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M>1</OWNER_M><OWNER_A>0</OWNER_A><GROUP_U>0</G
- 41 CentOS7 NIC名変更 @01_linux:01_net
- ACTION=="add",ATTR{address}=="xx:xx:xx:xx:xx:xx",NAME="eth0" SUBSYSTEM=="net", ACTION=="add",ATTR{address}=="xx:xx:xx:xx:xx:xx",NAME="eth1" SUBSYSTEM=="net", ACTION=="add",ATTR{address}=="xx:xx:xx:xx:xx:xx",NAME="eth2" SUBSYSTEM=="net", ACTION=="add",ATTR{address}=="xx:xx:xx:xx:xx:xx",NAME="eth3" </code> ==== 対応 ==== ethX以外の名前付けて、PCIパス指定
- 50 du: WARNING: Circular directory structure. @01_linux:01_net
- : WARNING: Circular directory structure. ====== namedをchrootで動かしている時は、dfのバグでこうなるようです。 https://bugzilla... he following directory is part of the cycle: `./named/chroot/var/named' </code> ===== ログ ===== ■chrootのnamedが動いている場合 <code console> # /etc/init.d/named status version: 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2
- 23 Apache vhost一覧 @01_linux:02_www
- i-https-vhost.conf:1) 127.0.0.1:80 is a NameVirtualHost default server status.localho... f/vhosts/00_status-vhost.conf:1) port 80 namevhost status.localhost (/opt/bitnami/apache/conf/vhosts/00_status-vhost.conf:1) port 80 namevhost www.example.com (/opt/bitnami/apache/conf/vh... wild alias * *:80 is a NameVirtualHost default server www.example.co