引入CentOS系统的软件管理主要有三种方式,rpm,yum,以及直接源码管理,前面已经详细介绍了rpm以及yum的相关用法,作为运维人员,源码安装有时也是不可避免的,下面,我们就以Apache为例简单介绍一下编译安装。一、什么是编译安装编译:将源代码变为机器可执行的代码文件。安..
分类:
Web程序 时间:
2015-12-27 16:26:56
阅读次数:
243
在Linux下,对软件包的管理有三种方式源代码方式,rpm和yum方式,yum是rpm的前端管理工具。对于普通用户来讲用源码方式是比较痛苦的。源码方式一般分为以下三个步骤。第一步./configure检查编译环境,生成makefile。第二步make把源代码编译成二进制文件。第三步makeinstall安装..
分类:
其他好文 时间:
2015-12-27 16:22:50
阅读次数:
235
一、编译前准备
1.开源代码包获取
(1)官方自建站点apache.org(ASF)、mariadb.org…
(2)代码托管站点
SourceForge
Github.com
code.google.com
2.C源代码开发工具及开发环境准备
(1)开发工具:make,gcc等
1)make:C/C++等编译的项目管理工具,用来处理源码到二进制码之间的过程(..
分类:
Web程序 时间:
2015-12-26 23:41:41
阅读次数:
297
1.解压mysql-5.1.73的安装包(同nginx)2.预编译、编译和安装(具体步骤如下)cd mysql-5.1.73./configure --prefix=/usr/mysql-5.1 make && make install3 添加mysql的用户组和用户名:groupadd mysql...
分类:
数据库 时间:
2015-12-26 23:23:55
阅读次数:
224
php artisan cache:clear #清除缓存php artisan make:model Active #建立模型php artisan make:Controller ActiveController #建立控制器php artisan migrate:refresh #刷新p...
分类:
其他好文 时间:
2015-12-25 20:42:04
阅读次数:
148
configure作用:是源码安装软件时配置环境用的 他根据你的配置选项和你的系统情况生成makefile文件 为make 做准备最常用的参数: ./configure --prefix 作用:不指定prefix,则可执行文件默认放在/usr/local/bin,库文件默认放在/usr/local/...
分类:
系统相关 时间:
2015-12-25 15:02:45
阅读次数:
208
Masonry在此实现时候,并没有比NSLayoutConstraint简单,相反我觉得还不如NSLayoutConstraint。 [self.topView mas_makeConstraints:^(MASConstraintMaker *make) { make.to...
分类:
其他好文 时间:
2015-12-25 01:02:52
阅读次数:
203
之前说过了关于vector的insert()方法,把vector B的元素插入到vector A中,vector A中的结果我们可想而知,但是vector B中的元素还会如何?看看之前写过的程序:#include
#include int main ()
{
std::vector myvector (3,100);
std::vector...
分类:
编程语言 时间:
2015-12-24 23:57:32
阅读次数:
448
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your...
分类:
其他好文 时间:
2015-12-24 11:56:41
阅读次数:
117
题目链接很裸的莫队, 就不多说了... 1 #include 2 using namespace std; 3 #define pb(x) push_back(x) 4 #define ll long long 5 #define mk(x, y) make_pair(x, y) 6 #define...
分类:
编程语言 时间:
2015-12-24 00:14:19
阅读次数:
345