yum lamp for Centos6.4

CentOS 6.4 YUM LAMP 安装教程
本文提供了一种在CentOS 6.4上安装LAMP(Linux Apache MySQL PHP)堆栈的方法,并通过shell脚本的形式实现自动化部署。此外,还介绍了一个简单的网页示例,该示例能够通过访问特定IP地址来链接到Google。

1,Centos6.4  yum lamp
#!/bin/sh
<<cat#echo Ruiy!#Create by Ruiy on 2015-03-27----cat yum install httpd httpd-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml  mysql mysql-server mysql-devel -y
/etc/init.d/httpd start
/etc/init.d/mysqld start

warning: here-document at line 2 delimited by end-of-file (wanted `cat')

2,直接访问google的ip地址

<!DOCTYPE HTML>
<html><head><style>
a{
    width:100px;height:40px;
    line-height:40px;padding:10px;
float:left;
}
</style>
</head><body>
<script>
var ip="64.233.160.163";
var arr=ip.split(",")
for( var i=0;i<arr.length;i++){ document.write("<a href='http://"+arr[i]+"' >Google</a>");}
</script></body></html>

posted on 2015-03-27 15:51 秦瑞It行程实录 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/ruiy/p/4372032.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值