随笔分类 -  linux

1 2 下一页
ssh 公钥登录
摘要:ssh-copy-id 将本机的公钥复制到远程机器的authorized_keys文件中,ssh-copy-id也能让你有到远程机器的home, ~./ssh , 和 ~/.ssh/authorized_keys的权利 第一步: 在本地机器上使用 ssh-keygen 产生公钥私钥对(三次空格即可) 阅读全文
posted @ 2023-01-04 14:04 jzfan
阿里云宝塔忘记账号密码
摘要:开启 忘记账号密码(返回账号,password 修改为预设密码) 阅读全文
posted @ 2019-12-31 18:26 jzfan
kill 端口进程
摘要:kill 80 端口进程 阅读全文
posted @ 2019-09-18 11:55 jzfan
ubuntu 18 卸载 cloud
摘要:You just deployed yourself a fresh copy of Ubuntu Server 18.04 Bionic Beaver. It should be the latest and greatest, and you just need a virtual machin 阅读全文
posted @ 2019-03-21 13:08 jzfan
curl openssl error
摘要:下载 cacert.pem 修改php.ini 阅读全文
posted @ 2018-03-31 23:56 jzfan
How to fix Error: laravel.log could not be opened?
摘要:Never set a directory to 777. you should change directory ownership. so set your current user that you are logged in with as owner and the webserver u 阅读全文
posted @ 2018-02-17 22:53 jzfan
upgrade php7.0 to php7.1 in ubuntu 16
摘要:php -v sudo add-apt-repository ppa:ondrej/php sudo apt-get update apt-cache search php7.1 (optional) sudo apt-get remove php7.0 sudo apt-get --purge a 阅读全文
posted @ 2018-02-17 02:14 jzfan
add user
摘要:ubuntu adduser deploy usermod -a -G sudo deploy centos adduser deploy passwd deploy usermod -a -G wheel deploy 阅读全文
posted @ 2016-02-25 11:19 jzfan
ubuntu lnmp
摘要:apt-get update apt-get upgrade apt-get install libxml2 libxml2-dev apt-get install make apt-get install mysql-server nginx wget http://cn2.php.net/dis 阅读全文
posted @ 2016-02-19 17:12 jzfan
ubuntu timezone
摘要:change timezonesudo dpkg-reconfigure tzdatasynchronize timesudo ntpdate time.windows.com 阅读全文
posted @ 2016-01-22 14:17 jzfan
vsftpd
摘要:安装 yum install vsftpd 重启、自启动、防火墙 添加虚拟用户 adduser -d /opt/test_ftp -g ftp -s /sbin/nologin testpasswd test 使用命令(adduser)添加test用户,不能登录系统(-s /sbin/nologin 阅读全文
posted @ 2015-09-13 20:11 jzfan
vmware虚拟机安装centos,配置PHP、mysql
摘要:1.mini版安装成功后不能进入,一直卡在进度条 开机时更改为单人模式,更改/etc/initttab设置,默认为5,改为3 进入后首先yum update2.yum安装gcc,perl,安装vmware tools 光驱加载VM目录下的windows.iso文件,然后mount -t iso966... 阅读全文
posted @ 2015-09-11 23:11 jzfan
linux 输出重定向
摘要:格式:command-line1 [1-n] > file或文件操作符或设备上面命令意思是:将一条命令执行结果(标准输出,或者错误输出,本来都要打印到屏幕上面的) 重定向其它输出设备(文件,打开文件操作符,或打印机等等)1,2分别是标准输出,错误输出。#显示当前目录文件 test.sh test1.... 阅读全文
posted @ 2015-09-11 15:40 jzfan
rmp 安装LNMP环境
摘要:系统环境:CentOS 6.6下载 PHP 源码包# wget http://cn2.php.net/distributions/php-5.6.0.tar.xz# xz -d php-5.6.0.tar.xz# tar xf php-5.6.0.tar -C /usr/local/src/安装依赖... 阅读全文
posted @ 2015-09-04 20:23 jzfan
iptables的基本语法格式
摘要:iptables的基本语法格式iptables [-t 表名] 命令选项 [链名] [条件匹配] [-j 目标动作或跳转]说明:表名、链名用于指定iptables命令所操作的表和链,命令选项用于指定管理iptables规则的方式(比如:插入、增加、删除、查看等;条件匹配用于指定对符合什么样条件的数据... 阅读全文
posted @ 2015-08-06 16:30 jzfan
You have new mail
摘要:有时在进入系统的时候经常提示You have new mail in /var/spool/mail/root你觉得烦人---解决方法:修改系统配置文件/etc/profile,告诉系统不要去检查邮箱.具体操作:命令行输入:echo "unset MAILCHECK" >> /etc/profile... 阅读全文
posted @ 2015-08-04 17:44 jzfan
查询各种信息
摘要:查/home目录下后缀名为sql而且内容包含"abc"的文件 -i表示不区分大小写 -l 只显示文件名 查版本 查产品信息 查raid 查磁盘及分区信息 查磁盘占用及挂载点 阅读全文
posted @ 2015-07-29 16:45 jzfan
安全的Web主机iptables防火墙脚本
摘要:下面以自己的Web服务器举例说明之,系统的默认策略是INPUT 为DROP,OUTPUT、FORWARD链为ACCEPT,DROP设置得比较宽松,因为我们知道出去的数据包比较安全;为了验证脚本的通用性,我特的 查看了服务器的内核及iptables版本,命令如下所示:12345678910uname ... 阅读全文
posted @ 2015-07-02 01:14 jzfan
iptables
摘要:1.首先介绍一下指令和相关配置文件启动指令:serviceiptablesstart 重启指令:serviceiptablesrestart 关闭指令:serviceiptablesstop 然后是相关配置:/etc/sysconfig/iptables 如何操作该配置呢? vim/etc/sysc... 阅读全文
posted @ 2015-07-02 00:50 jzfan
Linux服务器维护统计连接数查看外部IP
摘要:服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i "80"|wc -l 1 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 1 3)、统计已连接上的,状态为“established' netst... 阅读全文
posted @ 2015-07-01 11:49 jzfan

1 2 下一页