2: 2015-04-27 (Mon) 16:03:29 iseki | Cur: 2023-08-14 (Mon) 21:11:01 iseki | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | * CentOS7について [#te985dad] | ||
+ | - [[CentOS6]] | ||
+ | - [[CentOS8]] | ||
+ | #br | ||
+ | ** CentOS7 Memo [#j6bc5532] | ||
+ | |||
+ | *** dotnet 6.0 (for [[OpenSim]]) [#x196c9c9] | ||
+ | rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm | ||
+ | yum install dotnet-*-6.0 | ||
+ | #br | ||
+ | |||
*** ネットワーク設定ツール [#v6e46ac0] | *** ネットワーク設定ツール [#v6e46ac0] | ||
- nmtui | - nmtui | ||
Line 11: | Line 22: | ||
# systemctl stop firewalld.service | # systemctl stop firewalld.service | ||
# systemctl mask firewalld.service | # systemctl mask firewalld.service | ||
+ | |||
+ | # firewall-cmd --add-service=smtp --permanent | ||
+ | # firewall-cmd --add-service=smtp-submission --permanent | ||
+ | # firewall-cmd --reload | ||
+ | #br | ||
+ | |||
+ | *** タイムデーモン [#e82a60ea] | ||
+ | - chronyd | ||
+ | - 設定は /etc/chrony.conf | ||
+ | -- サーバになるには allow の指定が必要 | ||
+ | - ntp を使用してもよい. | ||
+ | -- ntp を使用する場合は chrony は無効化する.無効化しないと ntpd は起動しない | ||
+ | |||
+ | yum install chrony | ||
+ | systemctl enable chronyd.service | ||
+ | systemctl start chronyd.service | ||
#br | #br | ||
+ | - 時間が9時間進む場合 | ||
+ | -- RTC(ハードウェアクロック)が UTC になっている可能性がある | ||
+ | |||
+ | hwclock -s --localtime | ||
+ | |||
+ | ***systemctl by macsatou :-D [#iaa4e522] | ||
+ | /etc/init.d/script start相当 | ||
+ | # systemctl start unit | ||
+ | /etc/init.d/script stop 相当 | ||
+ | # systemctl stop unit | ||
+ | service --status-all 相当 | ||
+ | # systemctl --full | ||
+ | chkconfig --list 相当 | ||
+ | # systemctl --full list-unit-files | ||
+ | chkconfig script on 相当 | ||
+ | # systemctl enable unit | ||
+ | chkconfig script off 相当 | ||
+ | # systemctl disable unit | ||
+ | chkconfig --add script 相当 | ||
+ | # systemctl daemon-reload | ||
+ | PID探してkill -9 | ||
+ | # systemctl kill -s 9 sshd | ||
+ | ls /etc/init.d | ||
+ | # systemctl --type service |
- Backup list of CentOS7
- Backup diff of CentOS7 vs current(No. All)