https://www.tecmint.com/things-to-do-after-minimal-rhel-centos-7-installation/ 文章轉自這裏
1.網路先裝好
# yum install net-tools
看IP
ip addr show
然後設定
# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
IPADDR = “[Enter your static IP here]”
GATEWAY = “[Enter your Default Gateway]”
DNS1 = “[Your Domain Name System 1]”
DNS2 = “[Your Domain Name System 2]”
# service network restart
2.主機名稱 hostname
# echo $HOSTNAME
3.安裝文字browser
# yum install links
4.install httpd , mariadb , php
yum install mariadb-server mariadb httpd php
5.設定mariadb ( 前身mysql
Start and configure MariaDB to start automatically at boot.
# systemctl start mariadb.service
# systemctl enable mariadb.service
Allow service mysql (mariadb) through firewall.
# firewall-cmd --add-service=mysql
Now it’s time to secure MariaDB server.
# /usr/bin/mysql_secure_installation
6.設定 SSH , JAVA , GCC
yum install java gcc
啟動是 systemctl restart sshd.service
7. 安裝第三方軟件source
yum install epel-release
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
若找不到上列. 請到dake主機裏 /home/admin77/ThirdParty/找
8.7zip
yum install p7zip
還有更多. 請參照第一行連結