解压源代码
# tar xvzf stat –tnl |grep :80 过滤80端口 2、启动服务 # /usr/local/apache2/bin/apachectl start 编辑apache配置文件/etc/ 停止WEB服务 /usr/local/apache2/bin/apachectl start 启动WEB服务 5、让apache自动启动 # echo “/usr/local/apache2/bin/apachect1 start” >>/etc/rc.local
解压源代码 # tar xvzf mysql-5.0.67.tar.gz # cd / mysql-5.0.67 解压缩后编译 # ./configure --sysconfdir=/etc //编译,检查系统配置环境,配置文件目录是/etc # make &> make.log & //编译,挂到后台执行 # tail -f make.log h //查看后台执行情况 # make; make install # cp /usr/local/share/mysql/f /etc/f //把f配置文件拷贝到/etc/f 1、初始化数据库 # useradd -d /usr/local/var mysql # su - mysql $ /usr/bin/mysql_install_db $ cd /usr; /usr/bin/mysqld_safe & 2、 启动服务器 $ /usr/bin/mysqld_safe/ 用/usr/local/bin/mysql登录测试 3、$ mysql –u root 登陆数据库 Mysql>s 看版本 Mysql>q 退出 4、让mysql数据库服务器自动启动 5、cp /usr/local/share/mysql/mysql.server /etc/init.d/mysqld # chkconfig mysqld on # /etc/rc.d/init.d/mysqld status 检查mysql有没有启动 # /etc/rc.d/init.d/mysqld start启动服务 解压源代码 # tar xvjf php-4.4.9.tar.gz # cd / php-4.4.9 1、解压缩后运行 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local # make ; make install # cp /usr/src/php-4.4.9/php.ini-dist /usr/local/lib/php.ini 2、编辑apache配置文件/etc/httpd.conf,增加Addtype application/x-httpd-php .php .phtml 3、编写测试页面 cd /usr/local/apache2/htdocs vi test.php <?php phpinfo(); ?>
RAKsmart怎么样?RAKsmart香港机房新增了付费的DDoS高防保护服务,香港服务器默认接入20Mbps的大陆优化带宽(电信走CN2、联通和移动走BGP)。高防服务器需要在下单页面的IP Addresses Option里面选择购买,分:40Gbps大陆优化高防IP-$461/月、100Gbps国际BGP高防IP-$692/月,有兴趣的可以根据自己的需求来选择!点击进入:RAKsmart官...
关于半月湾HMBCloud商家之前也有几篇那文章介绍过这个商家的产品,对于他们家的其他产品我都没有多加留意,而是对他们家的DC5机房很多人还是比较喜欢的,这个比我们有些比较熟悉的某商家DC6 DC9机房限时,而且半月湾HMBCloud商家是相对便宜的。关于半月湾DC5机房的方案选择和介绍:1、半月湾三网洛杉矶DC5 CN2 GIA同款DC6 DC9 1G内存 1TB流量 月$4.992、亲测选择半...
BuyVM测评,BuyVM怎么样?BuyVM好不好?BuyVM,2010年成立的国外老牌稳定商家,Frantech Solutions旗下,主要提供基于KVM的VPS服务器,数据中心有拉斯维加斯、纽约、卢森堡,付费可选强大的DDOS防护(月付3美金),特色是1Gbps不限流量,稳定商家,而且卢森堡不限版权。1G或以上内存可以安装Windows 2012 64bit,无需任何费用,所有型号包括免费的...