全文検索:
- MySQLコマンド @02_freebsd:04_database:01_mysql
- | varchar(60) | NO | PRI | | | | User | varchar(16) | NO | PRI | | | | Password | varchar(16) | NO | | | | | Select_priv | enum('N','Y') | NO | | N | | | Insert_priv
- vipw @02_freebsd:80_unixコマンド
- 1::0:0:Owner of many system processes:/root:/sbin/nologin operator:*:2:5::0:0:System &:/:/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/sbin/nologin
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1... # I/O APIC # Bus support. Do not remove isa, even if you have no isa slots devic
- MySQL - レプリケーション @02_freebsd:04_database:01_mysql
- Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Co
- FreeBSD - vim @02_freebsd:99_その他
- == # cd /usr/ports/editors/vim # make install NO_GUI=yes ===== ソースからインストール ===== <color blue>※/ho... install </code> ====== .vimrc ====== <code> set nobackup if v:lang =~ "^ko" set fileencodings=euc-kr set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-* elseif v:lang =~ "^ja_JP" ... gs=euc-jp set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* elseif v:lang =~ "^zh_TW"
- 02 ProFTPD @02_freebsd:01_net
- inetdから起動する場合はinetd User nobody Group nobody <--nogroupから変更 DefaultRoot ~ !wheel DefaultRootの設定:この例ではユ... -------------------------------------- </code> ■Anonymousの部分は全てコメントアウトする。 ■PASVモードでインターネット公開する場合の設定
- 80_Unixコマンド @02_freebsd:80_unixコマンド
- ===== 標準 ===== {{topic>Unixコマンド +標準&header&table&nouser&tags&sort}} ===== ファイル操作 ===== {{topic>Unixコマンド +ファイル操作&header&table&nouser&tags&sort}} ===== 圧縮・復元・パックアップ ===== {{topic>Unixコマンド +圧縮・復元・パックアップ&header&table&nouser&tags&sort}} ===== ジョブ・タスク管理 ===== {{topic>Unixコマンド +ジョブ・タスク管理&header&table&nouser&tags&sort}} ===== エディタ ===== {{topic>Unixコマ
- MySQLのインストール @02_freebsd:04_database:01_mysql
- seradd mysql -g mysql -d /usr/local/ -s /usr/sbin/nologin </code> ====== インストール ====== <code console>... configureした時のエラー ===== こんなエラーでコンフィグできません。 <code conosle> $ ./configure --with-charset=ujis --with-ext... or termcap functions library... configure: error: No curses/termcap library found </code> これでコンフィグできま... 29 20:58:54 [ERROR] /usr/local/libexec/mysqld: unknown option '--skip-federated' my.cnfでskip-federate
- 06 squid @02_freebsd:01_net
- nfを設定 ===== ログディレクトリとキャッシュディレクトリを変更しました。 <code> no_cache deny QUERY cache_dir ufs /work/squid 100 1... ュさせたくない場合 ===== ■/usr/local/etc/squid/squid.confでno_cashで指定する。 <code> # vi /usr/local/etc/squid/squi... ----------- acl QUERY1 urlpath_regex cgi-bin \? no_cache deny QUERY1 ↑cgi-bin ?を含むURLをキャッシュしない acl SERVER1 dstdomain www.flateight.com no_cache deny SERVER1 ↑www.flateight.comのドメインをキャッシュ
- 15 MySQL 55 to 56 で問題 @02_freebsd:04_database:01_mysql
- ----------+ | sql_mode | STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION | +---------------+----------... ow in set (0.03 sec) mysql> SET GLOBAL sql_mode='NO_ENGINE_SUBSTITUTION'; Query OK, 0 rows affected (... obal.sql_mode | +------------------------+ | NO_ENGINE_SUBSTITUTION | +------------------------+ ... my.cnf === 再起動後も設定反映させるために、my.cnfも修正 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ↓ sql
- 03 inetd @02_freebsd:01_net
- ------------------------- ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l #ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l telnet stream tcp nowait root /usr/libexec/telnetd telnetd #telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd ---
- nohup @02_freebsd:80_unixコマンド
- ====== nohup ====== ===== 機能 ===== nohupはログアウトした後でもプログラムを実行し続けます。 処理の長いものを、実行したときなどに便利です。 後は、ログアウト後もずっと実行し続けたいときなどに使用します。 ===== 構文 ===== <code> nohup コマンド </code> ===== コマンド例 ===== === grepをログアウト後も実行し続ける。 === <code console> root@vaio# nohup grep "." /var/log/apache/access_log > log & [
- ps @02_freebsd:80_unixコマンド
- time| |k|utime|user time| |m|min_flt|number of minor page faults| |M|maj_flt|number of major page faults| |n|cmin_flt|cumulative minor page faults| |N|cmaj_flt|cumulative major page f... 016 /usr/sbin/sshd root 16253 0.3 0.0 S Tue Nov 15 11:48:32 2016 \_ sshd: matsui [priv] matsui 16255 0.1 0.0 S Tue Nov 15 11:48:33 2016 \_ sshd: matsui@pts/8 </co
- 01 MySQL インデックス @02_freebsd:04_database:01_mysql
- create table cloudstack_domain_resource( id int not null auto_increment, name text not null created_at datetime not null, primary key (id), key index_date(created_at), key index_domain(domain,created_at) ) ENGINE=InnoDB; </code> {{tag>mysql}}
- 10 文字列関数MySQL @02_freebsd:04_database:01_mysql
- L。下はMySQL独自。 ・前から6番目以降の文字列を取得 SELECT SUBSTRING('Knowledgebase' FROM 5); -- 'edgebase' SELECT SUBSTRING('Knowledgebase',5); -- 'edgebase' ・前から3番目以降、7文字を取得 SELECT SUBSTRING('Knowledgebase',FROM 3, FOR 7); -- 'wledgeb' SELECT SUBSTRING('Knowledgebase',3,7); -- 'wledgeb' 3. SUBSTRING_INDE