ArchLinux之LMAP攻略(1、环境准备)
这篇文章带来的是在ArchLinux上部署mysql apache php。
关于ArchLinux在之前的博客已经有了介绍,详情可以参考我以前的文章。
ArchLinux安装笔记(附图) http://fantlam.blogbus.com/logs/19306575.html
ArchLinux安装笔记(续)(桌面篇)http://fantlam.blogbus.com/logs/19353117.html
ArchLinux并不像当今Ubuntu那样的傻瓜易用,作为一个自己定制的操作系统,简洁轻巧是它的特点,当然真正学Linux也需要在这样的环境下才能对它更好的认识。
本次需要准备的软件如下(注意我这里下的都是源码):
httpd-2.2.14.tar.gz
mysql-5.1.40.tar.gz
php-5.3.0.tar.gz
Discuz_7.1_SC_GBK.zip
以及putty和Filezilla,之前在安装Oracle已经介绍过了。
当然ArchLinux已经是安装好的,搭建LMAP,最后用Discuz做测试。
首先需要把软件传到Linux机器上,我们依然采用putty和Filezilla进行远程操作和文件传输
ArchLinux一般来时是没有SSH的,可以用#pacman -S openssh来获取,不过我当时这个ArchLinux却已装有openssh了,那就直接来了。
可以配置开机自启动
在/etc/rc.conf文件加入
DAEMONS=(syslog-ng network netfs crond gdm alsa sshd)
也可手动启动openssl,执行#/etc/rc.d/sshd start
不过openssh默认没有开启远程访问的权限,还需要做一件事。
在 /etc/hosts.allow加入允许访问的IP,我本机是192.168.1.106.如图所示。最后重启openssh
#/etc/rc.d/sshd restart 就可以生效,我们就可以用putty和Filezilla连接了。
接着把几个软件传到Linux,一开始我把它们传到/home里,编译的时候出现了错误No space left on device ,后来发现时/home空间不足,make的时候出错,所以要保证空间充足。
用putty连上去,发现软件已经传输完毕
环境准备工作已经做完,下一步就可以安装各个软件了。
Fantastic blog! I really love how it’s easy on my eyes and also the info are well written. I am wondering how I can be notified whenever a new post has been made. I have subscribed to your rss feed which ought to do the trick! Have a nice day!