后端
jericho_ph
这个作者很懒,什么都没留下…
展开
-
unbuntu设置iptables
unbuntu设置iptablesUbuntu默认安装是没有开启任何防火墙的,为了服务器的安全,建议大家安装启用防火墙设置,这里推荐使用iptables防火墙.如果mysql启本地使用,可以不用打开3306端口.查看系统是否安装防火墙:whereis iptablesiptables: /sbin/iptables /usr/share/iptables /usr/share/man/man8/iptables.8.gz #表示已经安装iptables如果没有安装,清运行此命令安装防火墙:apt原创 2021-04-30 14:44:07 · 212 阅读 · 0 评论 -
centos7.1 安装 lnmp
centos 7.1 安装 lnmp安装nginx准备安装(安装相应环境):yum -y install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel vim设置vim永久显示行号:vim ~/.vimrcset number配置ssh链接时间:服务器端:vim /etc/ssh/ssh_configGSSAPIAuthentication noServerAliveInterval 36原创 2021-04-30 14:43:30 · 68 阅读 · 0 评论 -
ubuntu16.04源码安装lnmp环境
安装nginx下载pcre(8.38.tar.gz)下载zlib(1.2.11.tar.gz)openssl(1.0.2h.tar.gz)下载nginx(1.14)安装nginx./configure --prefix=/usr/local/nginx --pid-path=/usr/local/nginx/logs/nginx.pid --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/us..原创 2021-04-30 14:42:59 · 103 阅读 · 0 评论 -
ubuntu18.04安装lamp
Ubuntu18.04安装LNMP环境更新apt-get源:备份原源列表:sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak修改源列表:sudo vi /etc/apt/sources.listdeb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-s原创 2021-04-30 14:42:29 · 161 阅读 · 0 评论 -
ubuntu16.04 apt安装lnmp
安装nginx:apt install nginx安装mysql:apt install mysql-server mysql-client安装php7.1:apt-add-repository ppa:ondrej/phpapt updateapt install php7.1 php7.1-fpm php7.1-cgi php7.1-common php7.1-curl php7.1-mysql php7.1-mcrypt php7.1-mbstring配置php-fpm:ser.原创 2021-04-30 14:41:29 · 85 阅读 · 0 评论 -
源码安装LNMP
安装nginx下载pcre(8.38.tar.gz)下载zlib(1.2.11.tar.gz)openssl(1.0.2h.tar.gz)下载nginx(1.14)安装nginx./configure --prefix=/usr/local/nginx --pid-path=/usr/local/nginx/logs/nginx.pid --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/us..原创 2021-04-30 14:41:02 · 109 阅读 · 0 评论 -
apache windows配置
apache windows配置使用管理员模式打开编辑器修改:C:\Windows\System32\drivers\etc\hosts文件添加域名:127.0.0.1 dac打开:httpd.conf,搜索Virtual hosts去掉:Include conf/extra/httpd-vhosts.conf的注释修改:C:\xampp\apache\conf\extra\httpd-vhosts.conf文件添加路径授权:<VirtualHost 127.0.0.1:80>原创 2021-04-30 14:37:44 · 128 阅读 · 0 评论 -
apache linux配置
<VirtualHost *:80> ServerName uguoshu.yujizhou.com ServerAlias ugs.yiyousu.com DocumentRoot /home/wwwroot/uguoshu/public DirectoryIndex index.html index.php</VirtualHost><Directory "/home/wwwroot/uguoshu/public"> Options原创 2021-04-30 14:36:51 · 63 阅读 · 0 评论 -
服务器端,自动保存账号密码
vim .git/config写入配置文件[credential] helper = store原创 2021-04-30 14:33:50 · 141 阅读 · 0 评论 -
git merge 和 git rebase 小结
git merge 和 git rebase 小结git merge是用来合并两个分支的。git merge b # 将b分支合并到当前分支同样 git rebase b,也是把 b分支合并到当前分支-----------------------------------他们的 原理 如下:假设你现在基于远程分支"origin",创建一个叫"mywork"的分支。$ git checkout -b mywork origin假设远程分支"origin"已经有...原创 2021-04-30 14:29:35 · 43 阅读 · 0 评论