全文検索:
- tar @02_freebsd:80_unixコマンド
- == アーカイブ内のファイル名とファイル属性を表示する ==== <code console> root@vaio# tar tfv /dev/fd0 |head drwxr-xr-x root/wheel 0 5 26 06:27 2004 etc/X11/ lrwxrwxrwx root/wheel 0 9 21 23:27 2004 etc/aliases -> mail/aliases -rw-r--r-- root/wheel 208 5 26 06:28 2004 etc/amd.map -rw-
- MySQL - バックアップ @02_freebsd:04_database:01_mysql
- QL - バックアップ ====== ▼全データをバックアップ # mysqldump -u root -p[パスワード] --all-databases > 任意のファイル名 ▼データベース単位でバックアップ(例、DB:xoopsをバックアップ) # mysqldump -u root -p[パスワード] xoops > xoops.sql ====== 文字化け回避 ====== # mysqldump --default-character-set=binary -u root -p testdb > testdb.sql ====== MySQLデータリストア =====... 事です。\\ ▼例:xoops.sqlを使ってDB:xoopsをリストア # mysql -u root -p[パスワード] xoops < xoops.sql ====== 増分のみのバックアップ =
- Apache 2.0 + MySQL + PHP @02_freebsd:02_www
- ITH_PROXY_MODULES=no \ WITH_SUEXEC=yes SUEXEC_DOCROOT=/home \ SUEXEC_LOGFILE=/var/log/apache/suexec.lo... rep mysql ------------------------------------- root@vaio# ps auxw|grep mysql mysql 22676 0.0 0.... | | test | +-----------+ </code> ==== rootのパスワード設定 ==== <code console> # mysqladmin -u root password 'パスワードを記述' # mysql -u root -p Enter passwo
- suPHP @02_freebsd:02_www
- r_user=www ;Path all scripts have to be in docroot=/ ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file_group_writeable=false allow_file_others_writeable=false a
- 02 ProFTPD @02_freebsd:01_net
- <--nogroupから変更 DefaultRoot ~ !wheel DefaultRootの設定:この例ではユーザはホームディレクトリしか移動できないが、wheelグループは別という意味 <Limit SITE_CHMOD>... t on </code> ===== ログの時間がずれる。 ===== ◇ProFTPd+Chrootを使用すると、/etc/localtimeへアクセスできなくなり、 ftpでやり取りしたファイ... ------------------------------------------------ root test matsui ----------------------------------
- vipw @02_freebsd:80_unixコマンド
- passwdの記述形式に従って、ユーザー情報を入力します。 vipwコマンドは、スーパーユーザー(root)権限でのみ実行可能です。 また、同時に複数のユーザーがスーパーユーザーとしてファイルを編集できない... passwd,v 1.25.2.6 2002/06/30 17:57:17 des Exp $ # root:$1$rqHaqx8z$VeMIu58Z4gyh8drnmuAq61:0:0::0:0:Charlie &:/root:/bin/csh toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes
- MySQL - ログローテート @02_freebsd:04_database:01_mysql
- sh-logsを実行。 <code> # vi /etc/crontab 01 0 * * * root /usr/sbin/chown mysql /var/log/mysql/mysql.log ; /usr/local/bin /mysqladmin -u root -p[MySQLのrootパスワード] flush-logs </code> <color red>※root -p[MySQLのrootパスワード]の個所は-pの後にスペースは入れないようにする。</color> {{tag>M
- 外部接続 @02_freebsd:04_database:01_mysql
- 確認 ====== ▼現在のユーザの確認。 <code console> # mysql -u root -p mysql> select User,HOST,Password from mysql.u... ----+---------------------+------------------+ | root | localhost | 284e59d71f64e3ec | | root | vaio.mydomain.co.jp | 284e59d71f64e3ec ... ----+---------------------+------------------+ | root | localhost | 284e59d71f64e3ec
- 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 -----------in
- restore @02_freebsd:80_unixコマンド
- rf /dev/rst0 # ls -l total 1354 drwxrwxrwt 2 root bin 512 Mar 29 16:51 .X11-unix/ drwx------ 3 root bin 512 Mar 16 19:19 .XF86Setup191/ drw... 512 Apr 16 22:08 .iroha_unix/ -rw------- 1 root wheel 31936 Apr 23 13:13 restoresymtable drwxr-xr-x 10 root bin 1536 Apr 22 21:51 testdir/ # </code>
- rootでログインできない @02_freebsd:99_その他
- ====== rootでログインできない ====== rootのパスワードを忘れてしまったり、rootのシェルを間違ったものに変更してしまったりして\\ rootでログインできなくなった場合はシングルユーザモードで起動して修正します。\\ シングルユーザモードで起動して修正する方法をメモしておきます。\\ 後
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- performance on big directories options MD_ROOT # MD is a potential root device #options NFSCLIENT # Network Files... # Network Filesystem Server #options NFS_ROOT # NFS usable as /, requires NFSCLI... oku.php/02_freebsd/99_%E3%81%9D%E3%81%AE%E4%BB%96/root%E3%81%A7%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%8
- MySQLコマンド @02_freebsd:04_database:01_mysql
- -----------+------------+ | localhost | root | 284e59d71f64e3ec | Y | | cloud.flateight.com | root | | Y | | 127.0.0.1 | root | | Y | | local... t database: syslog Current user: root@localhost SSL: Not in use Cu
- dump @02_freebsd:80_unixコマンド
- home.bakとしてハードディスク上にバックアップを作る === <code console> root@vaio# dump -0uf - /home > /work1/aa DUMP: Date... n Sat May 21 21:10:05 2005 DUMP: DUMP IS DONE root@vaio# ls -l /work1 -rw-r--r-- 1 root wheel 472135680 5 21 21:12 home.bak </code> {{tag>Unixコマン
- ps @02_freebsd:80_unixコマンド
- sr/sbin/sshd 18083 Thu Jun 6 08:33:05 2013 sshd: root@pts/41 </code> <code console> # ps axwf -o user,pid,pmem,pcpu,state,lstart,cmd | grep ssh root 8779 0.0 0.0 S Tue Aug 30 15:11:35 2016 /usr/sbin/sshd root 16253 0.3 0.0 S Tue Nov 15 11:48:32 2016 \