Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS yum install LAMP     - C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)

- Java NIO in the world (Programming)

- Linux disk management practices (Linux)

- Ubuntu is not in the sudoers file problem solving (Linux)

- The Definitive Guide to Linux NAT network connection (Linux)

- Java is simple to read and write HDFS Demo (Programming)

- Linux command line to put on your coat GUI (Linux)

- Install Debian Linux with R on the Android system (Linux)

- Virtualbox virtual machine can not copy CentOS Network (Linux)

- Linux remote connectivity tools -OpenSSH (Linux)

- How to Install Focuswriter 1.4.5 (Linux)

- Ubuntu install Eclipse can not find JAVA_HOME problem (Linux)

- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)

- Some Linux networking tools you might not know (Linux)

- Usage of sudo (Linux)

- Ubuntu users Steam controller does not work solutions (Linux)

- Setup Qt development environment under Linux (Linux)

- Ubuntu Linux use MAC binding against ARP attacks (Linux)

- Linux Thread Synchronization (Programming)

- 20 Linux commands interview questions and answers (Linux)

 
         
  CentOS yum install LAMP
     
  Add Date : 2017-01-08      
         
         
         
  Under CentOS yum install LAMP

#! / Bin / bash
#
#Time: 2013/07 / 23-13: 37: 03
#
#OS: Centos_6.4
#This Is through the method of yum to install the LAMP!
#yum update -y #If this is the first time to update, that will take you for a long time.So Please choose carefully !!!
echo -e "\ 033 [31m Now, we start install LAMP! \ 033 [0m"
echo -e "\ 033 [32m` date` \ 033 [0m "
yum install -y gcc gcc-c ++ libtool lib ntp libtool libtool-ltdl libtool libtool-ltdl make httpd httpd-devel mysql mysql-server mysql-devel php php-devel php-mysql
echo -e "\ 033 [35m Yum install LAMP is Ok! \ 033 [0m"
sed -i 's / DirectoryIndex index.html / DirectoryIndex index.html index.htm index.php /' /etc/httpd/conf/httpd.conf
cd / var / www / html
cat> index.php << EOF
< ? Php
phpinfo ();
?>
EOF
netstat -tnlp | grep 80
if [? $ = 0]; then
  kill `netstat -tnlp | grep 80 | awk '{print $ 7}' | cut -d" / "-f1`
  service httpd restart
else
  service httpd start
fi
netstat -tnlp | grep 3306
if [? $ = 0]; then
  kill `netstat -tnlp | grep 80 | awk '{print $ 7}' | cut -d" / "-f1`
  service mysqld restart
else
  service mysqld start
fi
echo -e "\ 033 [32m Over! \ 033 [0m"

The above script in my Centos6.4_x86_64 test success! In the browser, enter http: // ip normal access php page!
     
         
         
         
  More:      
 
- To add the Oracle JDBC driver in Maven repository (Linux)
- Linux regex sed detailing (Linux)
- C language function pointer and a callback function (Programming)
- Linux use iptables ban Ping (Linux)
- After the first remote installation GlassFish Web to remotely access their back office management system error solution appears (Server)
- Win8 mount disk partitions under Ubuntu (Linux)
- Json Applications of FastJson (Programming)
- Remove old kernel on Ubuntu (Linux)
- Java how to achieve bubble sort the problem Arraylist (Programming)
- Ubuntu 14.04 LTS to compile the source code Android4.4.2 (Linux)
- Oracle and MySQL difference between the jdbc (Database)
- The execution order of Oracle WHERE condition is not from right to left (Database)
- Eclipse configuration GTK (Linux)
- Simple RPM package production (Linux)
- Linux compression and decompression command (Linux)
- Installation CD audio file extraction tool Flacon (Linux)
- Ubuntu 14.04 and derivative versions of the user install Pantheon Photos 0.1 (Linux)
- Linux Operating System Security Management describes the top ten tricks (Linux)
- ORA-12547: TNS: lost contact error Solution (Database)
- Oracle 11g + RAC + RHEL6.5 + udev + ASM + PSU installation summary (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.