随笔分类 -  运维相关

摘要:gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODU 阅读全文
posted @ 2020-08-17 16:44 JanWong 阅读(2070) 评论(0) 推荐(0)
摘要:如果命令 which 和whereis 都找不到安装目录,可使用以下办法 ps -ef|grep mysql 得到了进程号 xxxxx 然后 ls -l /proc/xxxxx/cwd 阅读全文
posted @ 2020-07-10 14:21 JanWong 阅读(415) 评论(0) 推荐(0)
摘要:第一步:安装Python3环境 1.首先安装编译环境(后续需要从python官网获取Python3的源码自己编译python) 1 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline 阅读全文
posted @ 2019-01-14 16:58 JanWong 阅读(1035) 评论(0) 推荐(0)
摘要:下载对应压缩包http://nginx.org/download/ 上次服务器并解压 [root] tar -zxvf nginx-1.2.0.tar.gz [root] cd nginx-1.20.0[root] mkdir /usr/local/nginx[root] ./configure - 阅读全文
posted @ 2018-08-23 16:19 JanWong 阅读(156) 评论(0) 推荐(0)
摘要:1、lsof -i:端口号 查看某一端口的占用 # lsof -i:8000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME lwfs 22065 root 6u IPv4 4395053 0t0 TCP *:irdmi (LISTEN) 2、n 阅读全文
posted @ 2018-08-14 17:34 JanWong 阅读(475) 评论(0) 推荐(0)
摘要:1. 查看Docker镜像仓库中Nginx的可用版本。 docker search nginx 2. 拉取最新版的Nginx镜像。 docker pull nginx:latest 3. 查看本地镜像。 docker images 4. 运行容器。 docker run --name nginx-t 阅读全文
posted @ 2018-08-08 00:21 JanWong 阅读(9818) 评论(1) 推荐(1)
摘要:1. 安装Docker的依赖库。 yum install -y yum-utils device-mapper-persistent-data lvm2 2. 添加Docker CE的软件源信息。 yum-config-manager --add-repo http://mirrors.aliyun 阅读全文
posted @ 2018-08-07 21:28 JanWong 阅读(225) 评论(0) 推荐(0)
摘要:1. 执行以下命令,安装Apache服务及其扩展包。 yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql 2. 执行以下命令,启动Apache服务。 systemctl start httpd.service 阅读全文
posted @ 2018-08-06 17:21 JanWong 阅读(141) 评论(0) 推荐(0)