06 2017 档案
摘要:使用Packagist 镜像 建立一个composer.json文件,内容如下: 通过 Composer 在命令行运行 create-project 命令来安装 Laravel: composer create-project --prefer-dist laravel/laravel blog 这
阅读全文
摘要:安装前请务必确保已经正确安装了 PHP。打开命令行窗口并执行 php -v 查看是否正确输出版本号。 开始安装前需要把open_ssl扩展打开 打开命令行并依次执行下列命令安装最新版本的 Composer: 执行第一条命令下载下来的 composer-setup.php 脚本将简单地检测 php.i
阅读全文
摘要:安装crontab: yum install crontabs 查看crontab服务状态:service crond status 手动启动crontab服务:service crond start 查看crontab服务是否已设置为开机启动,执行命令:chkconfig --list 如果没有加
阅读全文
摘要:查看当前系统时间 [root@centos64 ~]# date 查看硬件时间 [root@centos64 ~]# hwclock --show 同步时间可以用:ntpdate us.pool.ntp.org,需要联网。如果没有安装ntpdate的可以yum一下:yum install -y nt
阅读全文
摘要:SecureCRT可以使用linux下的zmodem协议来快速的传送文件,使用非常方便.具体步骤:一.在使用SecureCRT上传下载之前需要给服务器安装lrzsz:A:CentOS中使用yum安装即可 yum -y install lrzsz B:编译安装1、从下面的地址下载 lrzsz-0.12
阅读全文
摘要:cd /usr/local/src wget http://pecl.php.net/get/zip-1.13.5.tgz tar -zxvf zip-1.13.5.tgz cd zip-1.13.5 /opt/remi/php70/root/usr/bin/phpize #根据自己安装的路径变更
阅读全文
摘要:方法一:直接运行命令export PATH=$PATH:~/.composer/vendor/bin 使用这种方法,只会对当前会话有效,也就是说每当登出或注销系统以后,PATH 设置就会失效,只是临时生效。 方法二:执行vi ~/.bash_profile修改文件中PATH一行,将~/.compos
阅读全文
摘要:刚开始安装报错,我用的是php7,先安装zip,uzip扩展 yum install zip unzip php7.0-zip 然后通过 Composer 的 create-project 命令来安装 Lumen: composer create-project laravel/lumen --pr
阅读全文
摘要:1.下载composer ps:如果出现php无法运行的情况,请先把PHP加入环境变量 2.移动或复制composer到环境下可执行 3.测试看是否安装成功 ps:如果出现Do not run Composer as root/super user! 请切换用户运行
阅读全文
摘要:造成这个的原因是因为找不到php的执行文件导致的,原先我是安装的php5.4,然后卸载了重新安装php7,导致php可执行文件没有放到$PATH中,可以在终端测试:php -v,如果报错bash: /usr/bin/php: 没有那个文件或目录,就说明php没有放到环境变量中 解决方法: [root
阅读全文
摘要:首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: 这个是nginx官方写的脚本,红色部分需要修改成自己安装ngnix的路径 nginx=”/usr/sbin/nginx” 修改成nginx执行程序的路径。 NGINX_CONF_FILE=”/etc/nginx
阅读全文
摘要:先查看下所有服务的状态,看看php-fpm有没有正在运行 [root@centos64 html]# service --status-all php-fpm (pid 3568) 正在运行... 如果php-fpm已停,就开启此服务:service php-fpm start 如果php-fpm已
阅读全文
摘要:redis打包文件下载地址:http://files.cnblogs.com/files/cuiwenyuan/Redis-3.2.100-Windows-32.zip php_redis.dll下载地址:http://windows.php.net/downloads/pecl/snaps/red
阅读全文
摘要:第一步:在centos下面下载 nginx wget http://nginx.org/download/nginx-1.2.9.tar.gz 解压 tar zxf nginx-1.2.9.tar.gz第二部:新建一个用户nginx在安装操作 useradd nginx passwd nginx第三
阅读全文
摘要:更新软件源[1] wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm rpm -
阅读全文
摘要:通过以下命令查看了MySQL的字符集 连接上mysql服务,输入以下命令 mysql>show variables like 'character_set%'; 显示如下: 为了让MySQL支持中文,需要把字符集改变成UTF8, 方法如下: 1. 打开vi /etc/my.cnf 2. 修改成如下内
阅读全文
摘要:原因是MySQL的密码有问题 用mysql匿名用户可以进入数据库,但是看不见mysql数据库. 解决办法:具体操作步骤:关闭mysql:# service mysqld stop然后:# mysqld_safe --skip-grant-tables开启另一个终端并启动mysql:# service
阅读全文
摘要:先用chkconfig --list查询apache和mysql服务是否存在,不存在则需要手动添加 [root@centos64 vsftpd]# chkconfig --list 测试存在,只需要开启就行了 [root@centos64 vsftpd]# chkconfig httpd on [r
阅读全文
摘要:首先判断你服务器上是否安装了vsftpd [root@centos64 vsftpd]# rpm -q vsftpd 安装vsftpd [root@centos64 vsftpd]# yum -y install vsftpd 到vsftpd的主配置文件里面修改 [root@centos64 vsf
阅读全文