自分用メモなのでかなり割愛しています。詳細を知りたい場合は各々のサイトでご確認ください。
以下のコマンドを実行後、任意にパスワードを設定する。
htpasswd -c /etc/nginx/.htpasswd usernamexxxxxxxxxxlocation / { auth_basic "Basic Authetication"; auth_basic_user_file /etc/nginx/.htpasswd;}location の部分に上記2行を追加する。
データベースを作成したあとユーザを作成し、そのユーザ情報に紐づけます。
xxxxxxxxxxCREATE DATABASE dbname;xxxxxxxxxxGRANT ALL PRIVILEGES ON dbname.* TO dbuser@'localhost' IDENTIFIED BY 'dbpassword';nginxの設定でパーマリンクの処理の行を追加しないと反映しません。
xxxxxxxxxx location / { # Wordpress Parmanent Link try_files $uri $uri/ /index.php?q=$uri&$args; }xxxxxxxxxxopenssl genrsa 2048 > server.keyxxxxxxxxxxopenssl req -new -key server.key > server.csrxxxxxxxxxxrsync -auz -e "ssh -p 10022" username@servername:/directory/path/ /copy/distination/xxxxxxxxxxvim-cmd vmsvc/getallvmsxxxxxxxxxxvim-cmd vmsvc/device.connection VIM-ID 3002 truexxxxxxxxxxvim-cmd vmsvc/device.connection VIM-ID 3002 falsexxxxxxxxxxvim-cmd vmsvc/power.on VIM-IDxxxxxxxxxxvim-cmd vmsvc/power.reboot VIM-IDxxxxxxxxxxvim-cmd vmsvc/power.shutdown VIM-IDxxxxxxxxxxwget -r -np http://www.example.com/hoge/xxxxxxxxxxxgettext -k"_" --from-code=UTF-8 -o message.pot *.phpmsgmerge en_US/LC_MESSAGES/message.po message.pot -o en_US/LC_MESSAGES/new-message.pomsgfmt -o message.mo message.poxxxxxxxxxxyum remove mariadb-libsxxxxxxxxxxyum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpmxxxxxxxxxxyum -y install mysql-community-serverxxxxxxxxxxsystemctl enable mysqldsystemctl start mysqldsystemctl stop mysqldMySQL Community Server は最初にテンポラリパスワードが設定されNoパスワード状態ではログインできません。/var/log/mysqld.log の中に生成されたパスワード情報が記載されていますのでその情報を使ってログインします
xxxxxxxxxxA temporary password is generated for root@localhost: ABCDEFGHIJKエラー: 依存性の欠如: /lib/ld-linux.so.2 は esets-4.5.5-5.x86_64 に必要とされています /usr/lib/gconv/UTF-16.so は esets-4.5.5-5.x86_64 に必要とされています
エラーの原因は ld-linyx.so.2 の不足によるものです。
xxxxxxxxxxyum install ld-linux.so.2Privateキーと証明書を1つにまとめた PKCS12 の証明書の作り方です。
xxxxxxxxxxopenssl pkcs12 -export -inkey server.key -in server.crt -certfile server.crt -out server.pfx以下のコマンドを実行する。
xxxxxxxxxxcertbot certonly --manual --server https://acme-v02.api.letsencrypt.org/directory -d *.qurataro.com実行すると以下のメッセージが表示される
xxxxxxxxxxSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator manual, Installer NoneObtaining a new certificatePerforming the following challenges:dns-01 challenge for qurataro.com-------------------------------------------------------------------------------NOTE: The IP of this machine will be publicly logged as having requested thiscertificate. If you're running certbot in manual mode on a machine that is notyour server, please ensure you're okay with that.Are you OK with your IP being logged?-------------------------------------------------------------------------------(Y)es/(N)o:Please deploy a DNS TXT record under the name_acme-challenge.qurataro.com with the following value:Ahacuzt7x1785Kr8jncL4IqfpbBG3gqwVnrBstesRSCBefore continuing, verify the record is deployed.-------------------------------------------------------------------------------Press Enter to Continue指定したワイルドカード証明書のドメインに対して、認証用のサブドメイン名とチャレンジコードが発行される。この段階で、「Enter」を押さず、チャレンジレスポンスコードをコピーし、ドメインを管理しているDNSサーバに登録する。
| サブドメイン名 | _acme-challenge |
|---|---|
| レコードタイプ | TXT |
| データ | Ahacuzt7x1785Kr8jncL4IqfpbBG3gqwVnrBstesRSC |
DNSに登録したら登録情報が反映されるまでしばらく待ちます。TTL 3600 だと1時間は待ったほうがいいです。失敗するとチャレンジコードが再発行され、前のチャレンジコードが利用できなくなりますので、再発行されたチャレンジコードを再度DNSに登録する必要があります。
発行が成功すると、/etc/letsencrypt/live/qurataro.com/ にワイルドカード証明書が発行される。
今回は Vison Effect Floating ライセンスサーバの管理コマンド /sbin/rvlserver, /sbin/rvlkillserver の2つをセットする場合を想定します。
xxxxxxxxxx[Unit]Description=RVL Server Floating License AgentAfter=syslog.targetConflicts=rvlserver.service[Service]Type=forkingExecStart=/sbin/rvlserverExecStop=/sbin/rvlkillserver[Install]WantedBy=multi-user.targetxxxxxxxxxx$ systemctl enable rvlserverxxxxxxxxxx$ systemctl start rvlserverMacOS Mojave を使った場合の例です。
xxxxxxxxxxsudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/NO\ NAME/ --applicationpath /Applications/Install\ macOS\ Mojave.appMacbook の電源を投入後「option」ボタンを押し続けると、USBから起動します。 CentOS8 のデフォルト GUI 起動を停止する方法 CentOS8 はデフォルトでコンソール画面が GUI が起動するが、これを CUI 起動に変更する。
xxxxxxxxxx$ systemctl disable gdm.serviceCockpit のポート番号を変更
[Unit]Description=Cockpit Web Service SocketDocumentation=man:cockpit-ws(8)Wants=cockpit-motd.service[Socket]ListenStream=9090 --> 12345678ExecStartPost=-/usr/share/cockpit/motd/update-motd '' localhostExecStartPost=-/bin/ln -snf active.motd /run/cockpit/motdExecStopPost=-/bin/ln -snf /usr/share/cockpit/motd/inactive.motd /run/cockpit/motd[Install]WantedBy=sockets.targetiperf コマンドを使って通信速度の確認を行います。 送信側と受信側でコマンドを実行する必要があります。
$ iperf -sこのコマンドを実行して受信側が待機します。
iperf -c 192.168.1.2 -r受信側のIPアドレスを -c 以下にセットします。
$ iperf -c 192.168.1.2 -rServer listening on TCP port 5001TCP window size: 208 KByte (default)------------------------------------------------------------------------------------------------------------------------Client connecting to 192.168.1.1, TCP port 5001TCP window size: 208 KByte (default)------------------------------------------------------------[ 4] local 192.168.1.2 port 59854 connected with 192.168.1.1 port 5001[ ID] Interval Transfer Bandwidth[ 4] 0.0-10.0 sec 290 MBytes 243 Mbits/sec[ 4] local 192.168.1.2 port 5001 connected with 192.168.1.1 port 39888