In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
 
            
                     
                
2025-10-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to click LAMP installation script in Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
 
Create the script installation directory, and create the bash file [root@aaa~] mkdir / tools [root@aaa~] cd / tools [root@aaa~] touch lamp.sh to write the script #! / bin/bash#The author is wanghuachao.#This is the lamp installation script.--- without relying on the column, infinitely close the mountain, it is easy to go sometimes but difficult to go. # QQ:757844766 Mail:757844766@qq.com. / etc/init.d/functionsapache () {cd / toolsecho "* *" echo "* downloading apache and related software *" echo "* * * "if [!-f / tools/httpd-2.4.33.tar.gz] fiif [!-f / tools/apr-1.5.0.tar.gz] then wget-Q http://archive.apache.org/dist/apr/apr- 1.5.0.tar.gzfiif [!-f / tools/apr-util-1.5.4.tar.gz] echo "download complete." Cd / toolstar-zxf apr-1.5.0.tar.gzcd apr-1.5.0./configure-prefix=/usr/local/apr/make & & make installcd / toolstar-zxf apr-util-1.5.4.tar.gzcd apr-util-1.5.4./configure-- prefix=/usr/local/apr-util/-- with-apr=/usr/local/apr/make & & make installcd / toolstar zxvf httpd-2.4.33.tar.gzcd httpd-2.4. 33mysql () {cd / toolsecho "* *" echo "* install and compile the database mysql*" echo "* * * "if [!-f mysql-5.6.39.tar.gz] Thenwget http://ftp.ntu.edu.tw/MySQL/Downloads/MySQL-5.6/mysql-5.6.39.tar.gzfitar zxvf mysql-5.6.39.tar.gzcd mysql-5.6.39makeecho $? sleep 20make installecho $? sleep 20chown-R mysql:mysql / usr/local/mysqlecho $? cd / usr/local/mysql/echo $? / bin/cp support-files/mysql.server / etc/init.d/mysqlecho "* * * "cd / usr/local/mysql#mysql-e" update mysql.user set password=PASSWORD ('123456') where user='root' "# mysql-e" flush privileges; "# echo" * * "echo" * database setup is complete. * "echo" * * "} PHP () {cd / toolswget http://cn2.php.net/distributions/php-7.1.1.tar.gztar zxvf php-7.1.1.tar.gzcd Php-7.1.1make & & make installcp php.ini-development / usr/local/php71/etc/php.iniecho "* *" echo "* PHP installation completed * * "echo" * * "echo" Addtype application/x-httpd-php .php "> > / usr/local/apache24/conf/httpd.confpkill httpd/usr/local/apache24/bin/apachectl start} emlog () {echo" * * * "echo" * install the emlog website * "echo" * * * "cd / shellunzip emlog_v5.3.1.zipcd emlogcd src/cp *-R / usr/local/apache24/htdocs/rm / usr/local/apache24/htdocs/index.htmlecho" * * * "echo" * website installation completed. * "echo" * * "} function menu () {cat [EOF brackets changed to while truedoread-p" input instruction: "sscase $ss in 1) apache;; 2) mysql;; 3) PHP;; 4) emlog Q) exit;; esacdone
In this way, the installation of lamp is completed with one click.
This is the end of "how to click the LAMP installation script in Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about

The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r


A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from

Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





 
             
            About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.