摘要:
搭建过程 安装 gitlab的安装是很简单的,先下载安装包: 安装: 配置 gitlab内置了nginx的服务,所以默认会占用80和443端口。一般来说,我们做WEB开发,服务器上早就安装了nginx或者apache,把80和443端口给占了,所以需要做些修改防止冲突。 简单的修改端口是不可行的,比 阅读全文
摘要:
注:本文针对阿里云服务器项目流程 1规划服务器架构 slb >nginx配置代理 >服务器 >rds 其中slb阿里自己的负载IP nginx自己搭建的代理后端服务 服务器包括H5,api,微信小程序,zookeeper,dubbo,Jenkins,git,zabbix,redis等服务器 rds购 阅读全文
摘要:
1指定配置文件启动 ./redis-server /opt/server/redis/conf/redis.conf vim redis.conf #配置文件requirepass #后面跟密码 2密码及指定端口登陆 ./redis-cli -p端口 -a yun@@123 SELECT 0 #选择 阅读全文
摘要:
数据库 1查询 Select * From table select host,user,password from mysql.user where user='ybb' and host='%'; 查询用户 select user,host,password from mysql.user;(查 阅读全文
摘要:
1. 在启动系统出现如下画面时按Enter键进入系统设置页面: 2. 系统设置页面: 3. 按下e键进入: 4. 选择第二项,按e键进入 5. 在ro和root之间输入:single,表示以单用户模式进入系统: 6. 编辑完后按回车键,返回如下画面: 7. 按下b键,启动系统,进入单用户模式,如下: 阅读全文
摘要:
一、通过界面查看通过web界面查看时Nginx需要开启status模块,也就是安装Nginx时加上 --with-http_stub_status_module 一、通过界面查看 通过web界面查看时Nginx需要开启status模块,也就是安装Nginx时加上 --with-http_stub_s 阅读全文
摘要:
linux编写脚本检测本机链接指定IP段是否畅通,通过ping命令检测指定IP,检测命令执行结果,若为0表示畅通,若为1表示不通,以此判断网络是否畅通,但是指定机器禁用ping命令除外。代码如下: #!/bin/sh for n in `seq 245` //生成序列循环1-245 do ping 阅读全文
摘要:
#!/bin/bash#reboot .jar#author wangdonghuipid=`ps -ef |grep java |awk '{print $2}'`echo $pidecho' 'for id in $piddokill -9 $idecho 'killed $id'doneech 阅读全文
摘要:
#!/bin/bash# Check if user is root cur_dir=$(pwd) host=$(hostname) if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, plea 阅读全文
摘要:
#!/bin/bash#Function: Install redis#Author: DengYong#Date: 20151126 cd /root/packagewget http://download.redis.io/releases/redis-3.0.3.tar.gztar fxz r 阅读全文
摘要:
常用脚本 1)备份数据库 #!/bin/bash#每周一全量备份数据库 #DB1mysqldump -hip eduyun -u用户 -p密码 >eduyun`date +%Y-%m-%d-%H:%M:%S`.sqlmysqldump -hip eduyuntk -u用户 -p密码 >eduyunt 阅读全文
摘要:
3)安装lnmp脚本只供参考需修改相应参数 #!/bin/bash#Function: Install LNMP#Author: wang#Date: 20170809 nginx_install(){useradd www -u 509 -s /bin/bash -mmkdir -p /opt/s 阅读全文