linux之centos安装xampp
2017-01-14 20:56
302 查看
转载 http://www.cnblogs.com/andydao/p/4162018.html
一、xampp下载地址:
http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-x64-5.5.19-0-installer.run二、我下载的是xampp-linux-x64-5.5.19-0-installer.run (备注 wget下载文件后默认存放在当前目录下)
32位系统:wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-5.5.19-0-installer.run 64位系统:wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-x64-5.5.19-0-installer.run 三、下载完以后,给该文件添加执行权限:
chmod a+x xampp-linux-x64-1.8.3-a-installer.run
四、安装xampp过程如下:
[root@nginxone src]# sh xampp-linux-x64-1.8.3-1-installer.run
xampp-linux-x64-1.8.3-1-installer.run: xampp-linux-x64-1.8.3-1-installer.run: cannot execute binary file
[root@nginxone src]# ./xampp-linux-x64-1.8.3-1-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited)
XAMPP Developer Files [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press [Enter] to continue :
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
Launch XAMPP [Y/n]: y
五、安装后的文件在 /opt/lamp
六、启动xampp:
[root@nginxone lampp]# /opt/lampp/xampp start
Starting XAMPP for Linux 1.8.3-1...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...fail.
XAMPP: Another FTP daemon is already running.
七、停止xampp:
[root@nginxone lampp]# /opt/lampp/xampp stop
Stopping XAMPP for Linux 1.8.3-1...
XAMPP: Stopping Apache...not running.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...not running.
八、添加开机启动:
温习一下ln命令,使用方式:
#ln [option] source dist
#ln –s /opt/lampp/xampp /etc/rc.d/init.d/xampp
九、如果执行完上面这条还不能开机自动启动,再执行下面3条语句。
#chkconfig –add xampp
#chkconfig –list | grep xampp
#chkconfig –level 3 xampp on
启动:
/opt/lampp/lampp start
然后打开浏览器,输入http://localhost 就可以看到默认页面了,说明安装成功了。
另外它附带安装的phpmyadmin也非常好用,网址是:http://localhost/phpmyadmin 。
自己的php项目,只需要通过ln -s 软链接到 /opt/lampp/htdocs 就好了
####################### 扩展阅读 ##################################
安全问题(必读!)
如前所述,XAMPP 并不适用于生产环境,而仅供开发环境使用。XAMPP 被设置为尽量开放,并提供开发者任何他/她想要的功能。这对于开发环境来说是很棒的,但对于生产环境来说却可能是致命的。
这儿有一份 XAMPP 缺乏安全防护的列表:
1 MySQL 管理员(root)没有密码。
2 MySQL 可通过网络访问。
3 ProFTPD 使用“lampp”作为用户名“nobody”的密码。
4 PhpMyAdmin 可以通过网络访问。
5 示例程序可以通过网络访问。
6 MySQL 和 Apache 在同一个用户名(nobody)下运行。
要修正绝大部分的安全薄弱环节,只需执行以下命令:
/opt/lampp/lampp security
它会启用一个小小的安全检查功能,使您安装的 XAMPP 更安全。
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
|
相关文章推荐
- Linux-CentOS XAMPP Apache 防盗链模块mod_auth_token的安装配置
- linux应用之xampp集成环境的安装及配置(centos)
- 原创)CentOS6.4下安装xampp(一定要在linux上下载)
- Linux-CentOS XAMPP Apache 防盗链模块mod_auth_token的安装配置
- Linux-CentOS XAMPP Apache 启用GZIP压缩功能 mod_deflate的安装配置
- Centos 7.x Linux XAMPP 1.8.3-5 for CentOS 7.2 Linux 版系统安装
- linux之centos安装xampp
- linux基于wdcp傻瓜式安装搭建discuz,Centos6.5 部署安装XAMPP1.8.3
- centos等linux下如何安装xampp 【网上的其他的都不齐全 这个齐全】
- Linux基础知识--(03)在Windows 2003下从硬盘安装CentOS 5.3
- CentOS Linux下安装和配置JDK与Tomcat
- linux lvs 的DR 模式CENTOS 4.4 三台linux 的http负载均衡安装步骤
- CentOS release 5.4 (Final) Linux在HP服务器安装
- Windows 下硬盘安装CentOS Linux 5.3
- 关于windows xp 安装vmware虚拟机 并安装linux系统(centos5.2)
- Linux (CentOS-6.5-i386-bin-DVD)U盘启动安装
- 在CentOS Linux上安装oracle11g之四 其他问题
- 如何安装CENTOS对NTFS分区的支持[LINUX下如何挂载NTFS分区]
- Linux(CentOS 5)下安装Oracle10 客户端
- CentOS 5 linux tomcat6.0的安装