#author("2025-04-10T06:40:51+00:00","default:iseki","iseki") * Settings of Linux #author("2025-04-10T06:41:16+00:00","default:iseki","iseki") * First Settings for Linux *** Files **** for Shell - .bashrc : https://polaris.star-dust.jp/Linux/setup/.bashrc - .bash_profile : https://polaris.star-dust.jp/Linux/setup/.bash_profile - .exrc : https://polaris.star-dust.jp/Linux/setup/.exrc cd rm .bashrc .bash_profile wget https://polaris.star-dust.jp/Linux/setup/.bashrc wget https://polaris.star-dust.jp/Linux/setup/.bash_profile wget https://polaris.star-dust.jp/Linux/setup/.exrc mv .exrc .vimrc ls -la **** for Developments - Rocky Linux 8 (PHP, MariaDB, Apache なし) : https://polaris.star-dust.jp/Linux/setup/rocky8-devel.sh - Rocky Linux 9 (PHP, MariaDB, Apache なし) : https://polaris.star-dust.jp/Linux/setup/rocky9-devel.sh wget https://polaris.star-dust.jp/Linux/setup/rocky9-devel.sh bash rocky9-devel.sh **** Host Name - /etc/hostname または hostname コマンド *** Date Time **** Time Zone - timedatectl set-timezone Asia/Tokyo **** Date & Time - date 05221012 # 5/22 10:12 **** 再起動時に、時間が 9時間進んでしまう場合はRTC(ハードウェアクロック)が UTC になっている可能性があるので、RTCをローカルタイムに変更する hwclock -s --localtime *** Services **** サービス一覧 - systemctl list-unit-files -t service **** SELinux の無効化 - ''[[SELinux]] を止める'' *** Add Applications **** Java SDK dnf -y install java-1.8.0-openjdk dnf -y install java-1.8.0-openjdk-devel **** VSFTPD - /etc/vsftpd/vsftpd.conf listen=YES listen_ipv6=NO - vsftpd の有効化 systemctl enable vsftpd systemctl start vsftpd - ファイアウォールに穴を空ける. firewall-cmd --add-service=ftp --permanent firewall-cmd --reload #br