12
Мар
0

Изменения для Centos 7

LAMP Stack

Very similar to CentOS-6.x install, pretty sure that mysql is an alias for mariadb.

yum -y install mariadb mariadb-server mariadb-devel
yum -y install httpd php php-mbstring php-mysqli php-dom php-gd
systemctl enable httpd mariadb
systemctl start httpd mariadb
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h `uname -n` password 'new-password'
history -c    # clear history
echo "grant SELECT,LOCK TABLES,SHOW VIEW on *.* to backup@localhost; flush privileges;" | mysql -uroot -p mysql   # backup acct for mysqlutil backup
systemctl enable httpd.service
systemctl start httpd.service
systemctl is-active httpd.service   # check status
systemctl enable mariadb.service
systemctl start mariadb.service
/usr/lib/mysql_secure_installation   # follow prompts to tighten up the install
systemctl list-unit-files | grep -i network
systemctl stop NetworkManager
systemctl disable NetworkManager
yum install autofs nfs-utils
systemctl enable autofs
systemctl start autofs
systemctl reload autofs
firewall-cmd --zone=public --add-port=http/tcp --permanent   # open http to public zone
firewall-cmd --reload     # reload firewalld rules so that things take effect
# plug in USB stick
ls -lrt /dev/sd*  # find the recently inserted USB stick, should have the base entry and a single partition entry (ie: sdc and sdc1)
mount -t vfat /dev/sdb1 /mnt
cd /mnt
install.sh   # now have a script to do the following
#rpm -ivh kmod-forcedeth*.rpm
# I want to get some other scripts onto this volume as well to help get this currently network challenged system going AFTER we complete the install
#cp -rip /mnt/forcedeth-followup /root/
vi /etc/default/grub
# add "net.ifnames=0" to GRUB_CMDLINE_LINUX line
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.

Comments are closed.

Celadon theme by the Themes Boutique