server関連情報

VPN Server構築してみる / vps server centos 7.5
ちょっと古い cent os 7.5にVPN Serverを構築して、macから接続してみます。 iptablesでポート開放 -A INPUT -p udp -m ucp --dport 1194 -j ACCEPT -A ...

さくらのレンタルサーバー SSH接続でscreenを使用する
ちょっとさくらのレンタルサーバーで作業するときにscreenが使えないので入れてみました。 % uname -a FreeBSD xxx.sakura.ne.jp 11.2-RELEASE-p15 FreeBSD 11.2-RELE...

ドメイン取得&更新どこが良い!?お名前.com,value-domain,さくら,Google,FC2
お名前が一番安いのかな?と思っていたら googleやFC2もあるんですね^^; お名前.com 安い!? 「.com 0円(1,408円)」 「.net 0円(1,628円)」 「.jp 0円(3,124円)」 「.info...

さくらのレンタルサーバーに無料SSL – Let’s encryptを設定する!
ドメインをさくらに設定、(ネームサーバー) 別サービスで利用しているドメインのサブドメインを利用(各ドメイン管理サービスの設定をご確認ください sub1.grtlab.comを利用する場合 wwwの設定が必要 ( www...

nginx + certbot 自動設定の時の確認
自動設定できないというかcertbotで入力が必要なので。 nginxの configにsslのドメイン部分があればすべてコメントアウトしておく #ssl_certificate /etc/letsen.../fu...

ansible プロジェクト追加 MacBook Pro + CentOS 9
でサーバー初期設定してみる!-ansible-playbook-ユーザー追/ MacBookにansibleを入れる 久しぶりに。。。 12.6.1 monterey まだ古いまま使っています。 pythonを...

Centos 9 タイムゾーン変更で UTC表示に変更
表示を UTCに変更しようかなと $ timedatectl list-timezones | grep UTC Etc/UTC UTC $ timedatectl set-timezone UTC ==== AUTHENTI...

CodeIgniter4 / Composer on Cent OS Stream9, PHP8.1
CodeIgniter4 CodeIgniter 4 is the latest version of the framework, intended for use with PHP 7.3+(including 8.1).The...

Cent OS Stream9 で Let’s Encrypt 無料SSLを試す!certbotで簡単設定
dnf install で certbotpython3-certbot-nginx で大丈夫なようです。 nginx に 80だけ設定して nginxが時効されている必要がある. これは手動 # certb...

Cent OS Stream 9 : nginx が起動できない。。。
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: bind() to 0.0.0.0:443 failed (98: Address alre...

mariadb 10.4 -> 10.5 設定変更
10.5もcent os stream9 appstrem に入っていたものなので本家との違いもあるとは思いますが。 /usr/lib/systemd/system/mariadb@.service これで mariadb@u...

Cent OS Stream 9 を使ってみる!
cent os 8がサポート切れとのことで。。。 streamを使ってみます。今の所 cent os 6と7まだ使っているのですが^^;;;;;重要なサーバーはないので、これからサービスインするため、更新していきます。 パッケージ管...

git-archive でファイルを保存
git-archive - Create an archive of files from a named tree 別のリポジトリへファイルを移すため現状をアーカイブしてほかサーバーへ移そうと。 使わないなら cloneして...

CentOS 7 のサービス起動、停止、初期設定 systemctl – chkconfig
iptablesを設定しても起動ファイルもなくよく分からなかったのですが # yum install iptables-services これで、iptablesのサービス start stopができました。 # sys...

Ansible – 一行変更・一行追加 lineinfile / 再起動 reboot / taskファイルinclude
lineinfile – Manage lines in text files SELinuxを停止してみる。regexpがあれば書き代わり、なければ最終行に追加されるようです。行指定したい場合には、insertafter: , i...

SWAP 作成/削除 for VPS/クラウド for Linux – CentOS/Ubuntu
vpsやクラウドでサーバーを作った時にswap領域がない場合に サービスによっては作れない場合も?cent os / ubuntu 両方できました。 swapファイルを作成してswap設定する! redhat例では、ファ...

GITLAB – バックアップ&リストアしてみる!
CE or EE Community Edition or Enterprise Editionはライセンス入れなければトライアル期間後はCEと同じです。普通に使う分にはCEで問題ないので。 機能比較 CE - EEは機能豊富...

Ansible – iptables設定 – ansible-playbook
iptables 用の roleを作成してタスクは以下のようにポイントは INPUT DROPを最後にしているところです。SSHの設定より前にあると切断されてしまいます。接続できなくなりました。 $ vim iptables/tas...

Ansible でサーバー初期設定してみる! ansible-playbook ユーザー追加, ssh key設定, sshd port変更 | macos12.5 centos8.1で更新
2022.08 追記 macos12.5 centos8.1で更新 redhad ansible for everyone 2022.08 - centos 8にも入れてみました。 Ansible Install ...

WebARENA – indigo のVPSを使ってみる!!!導入起動編 – 時間単価!
WebARENAログイン画面ここからサービス>indigoを選択 ダッシュボードからインスタンス作成ボタンを選択 インスタンス作成画面からサイズを選択して CentOS イメージを選択UtuntuとCentOS...

VPSサーバー比較してみる!2019.11 さくらのVPS, ConoHa, WebARENA(indigo)
さくらインターネットのVPSサーバーが一新されたのでひさしぶりにVPSをちょっとチェックしてみます。自分が利用しているのはさくらで、初期費用無料になったのですべて新しいものに移行しようと思います。移行がやや面倒ですが^^; WebA...

Let’s Encrypt 無料SSLを試す!certbotで簡単設定
sslを更新しようかと考えていてユーザーデータや課金データを扱うサイトではないので無料のSSLを試してみようかと Lets Encrypt を利用してみることにしました。 SSLの種類?無料で大丈夫? SSLの認証の種類には...