Linux
TurboOrca
这个作者很懒,什么都没留下…
展开
-
Allowed memory size of 134217728 bytes exhausted (tried to allocate 2359296 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 2359296 bytes)解析:134217728/1024/1024 = 128解决方案1:ini_set(‘memory_limit’,’256M’); //升级为申请256M内存解决方案2:修改php.ini修改php配置vi /usr/local/php/etc/php.inimemory_limit = 128 改成memory_l原创 2020-12-13 18:23:34 · 676 阅读 · 0 评论 -
MySQL远程登录
获取IP输入ifconfig得到eth0 inet addr:172.16.0.15MySQL授权root用户 以一个IP进行远程登录,并具有所有库任何操作权限,具体操作如下:在本机先使用root用户登录mysql:mysql -u root -p"youpassword"进行授权操作:GRANT ALL PRIVILEGES ON *.* TO root@"172.16.0.15" IDENTIFIED BY "youpassword" WITH GRANT...原创 2020-11-27 14:17:27 · 233 阅读 · 0 评论 -
linux查看svn用户名和密码
cd /root/.subversion/auth/svn.simple在这个目录下可以看到类似a2dc58b7668dba51b692081cc32ac86e的文件vim打开这样的文件就可以看到用户名和密码这样可以指定用户名和密码进行下载svn co 地址 --username xxx --password xxx...原创 2020-11-02 15:44:15 · 870 阅读 · 0 评论 -
nginx-http-concat开源模块
该模块类似于apache中的mod_concat模块,用于合并多个文件在一个响应报文中。请求参数需要用两个问号('??')例如: http://example.com/??style1.css,style2.css,foo/style3.css 参数中某位置只包含一个‘?’,则'?'后表示文件的版本,例如: http://example.com/??sty...原创 2020-05-13 09:28:26 · 429 阅读 · 0 评论 -
nginx: unknown directive "concat"
服务器迁移后,nginx报错:unknown directive "concat"# nginx -Vnginx version: nginx/1.16.1built by gcc 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)built with OpenSSL 1.1.1d 10 Sep 2019TLS SNI support enable...原创 2020-05-13 09:28:02 · 899 阅读 · 0 评论 -
nginx access denied
nginx访问index.php出现access deniedindex.html页面能正常显示解决办法:#cgi.fix_pathinfo由0改为1vim /usr/local/php/etc/php.inicgi.fix_pathinfo=1修改nginx的vhost下的文件fastcgi_pass unix:/tmp/php-cgi.sock;fa...原创 2020-05-13 09:27:53 · 346 阅读 · 0 评论 -
nginx: [emerg] unknown log format “access”
在centOS系统中配置nginx的过程中,访问浏览器可能出现如下错误:nginx: [emerg] unknown log format “access”。解决:在nginx.conf配置文件中 include vhost/*.conf; 前面添加log_format access '$remote_addr - $remote_user [$time_local] ...原创 2020-05-13 09:27:45 · 445 阅读 · 0 评论 -
Linux安装PHP的Redis扩展
1、下载:https://pecl.php.net/package/redis选择适合PHP版本的插件redis-2.2.8.tgz2、安装#上传redis-2.2.8.tgz 到/usr/local/src目录cd /usr/local/src #进入软件包存放目录tar -zxvf redis-2.2.8.tgz #解压cd redis-2.2.8.tgz #进入...原创 2020-05-13 09:27:08 · 187 阅读 · 0 评论 -
Linux下卸载Redis
1、停止redis服务器# ps -ef | grep redisroot 28274 1 0 17:08 ? 00:00:02 /usr/local/redis/bin/redis-server 127.0.0.1:6379 root 28398 19147 0 18:01 pts/2 00:00:00 g...原创 2020-05-13 09:26:57 · 10604 阅读 · 0 评论 -
Linux下安装redis
1.获取redis资源官网下载稳定版本:https://redis.io/download2.解压 tar -xzvf redis-5.0.8.tar.gz3.安装 cd redis-5.0.8 make cd src make install PREFIX=/usr/local/redisPREFIX选项是配置安装的路径注意大写不能忽略,不...原创 2020-05-13 09:26:39 · 135 阅读 · 0 评论 -
SSH设置秘钥
1、scrt创建密钥对先用scrt创建公钥和秘钥Identity.pub 是scrt生成的公钥文件,上传至服务器把公钥文件转换为服务器能识别的OpenSHH格式ssh-keygen -i -f Identity.pub >> authorized_keys2、服务器创建密钥对ssh-keygen <== 建立密钥对cat id_rsa.pub ...原创 2020-05-10 10:34:14 · 261 阅读 · 0 评论 -
Linux上安装rz和sz、pv、tree命令
安装与使用yum安装# yum -y install lrzsz原创 2020-05-10 10:33:49 · 424 阅读 · 0 评论 -
Linux上配置SVN
一、检查是否已经有svn[root@localhost ~]# svnserve --version-bash: svnserve: command not found二、安装在Linux下安装的是subversion,直接用yum 安装即可原创 2020-04-23 11:14:35 · 220 阅读 · 0 评论