In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Deploy the underlying LAMP architecture with one click using the Shell script
Installation order: apache → mysql → PHP
Software package needed for experiment: link: https://pan.baidu.com/s/1tKAjqn50NnR7F3JmzyHF1w extraction code: 1xpr
#! / bin/bash# automatically builds LAMP architecture with one click (use source to execute or use. Command execution) # Database default password is 12312remote mount df-hT | grep-o "cifs" if [$?-ne 0]; thenecho "Start mount" yum install expect-yread-p "enter the host IP:" gongip/usr/bin/expect / etc/profilesource / etc/profileecho $PATH | grep-o "mysql" if [$?-eq 0] Then echo "add success" else echo "failed" exit 1fiuseradd-s / sbin/nologin mysqlchown-R mysql:mysql / usr/local/mysql//usr/local/mysql/scripts/mysql_install_db\-- user=mysql\-- ldata=/var/lib/mysql\-- basedir=/usr/local/mysql\-- datadir=/home/mysqlsed-I-e '47d'-e' 46d'-e '45abasedir=/usr/local/mysql\ ndatadir=/home/mysql' / Etc/init.d/mysqldservice mysqld startnetstat-ntuap | grep mysqldif [$?-eq 0] Then echo Mysql database startup else echo startup failed exit 1 fi#read-p "Please enter database password (custom):" mima/usr/bin/expect
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.