#author("2020-01-12T11:53:43+09:00","default:kuji","kuji")
#author("2020-01-12T15:15:59+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
* FreeBSD setup [#z03a9999]

スクラッチインストール後、sshでリモート接続出来る所までセットアップできたら、リブート待ち時間の短縮を。[[起動メニュー待ち時間]]

 echo autoboot_delay=\"3\" >> /boot/loader.conf

*[[ports collection の更新]] [#e2f13ee8]

 portsnap fetch && portsnap extract

*[[portupgrade のインストール]] [#z3c67216]

 cd /usr/ports/ports-mgmt/portupgrade && make BATCH=yes install clean

perl ruby のデフォルトバージョンも同時にインストールされます。

*[[locate database 作成]] [#b812a7e0]

 /etc/periodic/weekly/310.locate

*screen [#e9c890f9]

 portinstall screen --batch

 echo termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' >> /root/.screenrc

*rsync [#l5d61a05]

 portinstall rsync --batch

* making BAMP [#cdecfa65]

 portinstall --batch apache24 mod_php72 postfix
 portinstall mysql57-server mysql57-client --batch


 echo postfix_enable=\"YES\" >> /etc/rc.conf
 echo sendmail_enable=\"NO\" >> /etc/rc.conf
 echo sendmail_submit_enable=\"NO\" >> /etc/rc.conf
 echo sendmail_outbound_enable=\"NO\" >> /etc/rc.conf
 echo sendmail_msp_queue_enable=\"NO\" >> /etc/rc.conf
 echo apache24_enable=\"YES\" >> /etc/rc.conf
 echo mysql_enable=yes >> /etc/rc.conf

 reboot

mysqlが起動できたら、rootユーザのパスワードを設定します。初期状態ではパスワードなしになっています。ここでは root@localhost の設定を変更しておきます。
 mysqladmin -u root -h localhost password 'XXXXXX' ←XXXXXXに半角でパスワードを書きます。
mysqlが起動できたら、rootユーザのパスワードを設定します。インストール直後のrootパスワードは、/root/.mysql_secret にある.

 # mysql -u root -p
 Enter password: 
  
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 4
 Server version: 5.7.28-log
 
 Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
 
 Oracle is a registered trademark of Oracle Corporation and/or its
 affiliates. Other names may be trademarks of their respective
 owners.
 
 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
 root@localhost [(none)]>  SET PASSWORD FOR root@localhost=password('XXXXXXXXXX');
 Query OK, 0 rows affected, 1 warning (0.00 sec)

 root@localhost [(none)]>

[[mysql57]]

http://www.aiship.jp/knowhow/archives/28257

 portinstall databases/phpmyadmin --batch

 portinstall security/py-certbot

 portinstall munin-node munin-master --batch
 


----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS