随笔分类 - Linux
Linux运维、开发、服务部署等方面的记录
摘要:firewall-cmd --zone=public --permanent --add-port=1234/tcpfirewall-cmd --zone=public --remove-port=1234/tcpfirewall-cmd --zone=public --list-portsfire
阅读全文
摘要:使用exp导出表时,出现EXP-00091的错误查询环境变量:select userenv('language') from dual;在Oracle用户下的.bash_profile中加入下行环境变量:export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16G
阅读全文
摘要:参考:http://studygolang.com/topics/21 (1)首先进入go/src 源码所在目录,执行如下命令创建目标平台所需的包和工具文件。 $ cd /usr/local/go/src$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.b
阅读全文
摘要:文件加密、解密-a base64编码openssl enc -e -bf -a -salt -in a.txt -out b.txtopenssl enc -d -bf -a -salt -in b.txt -out c.txt 检查文件MD5值openssl dgst -md5 b.txt RSA
阅读全文
摘要:安装Nginx# tar -zxvf nginx-1.11.7.tar.gz# yum install pcre-devel zlib-devel gcc gcc-c++ openssl-devel -y# groupadd nginx# useradd -M -s /sbin/nologin -g
阅读全文
摘要:约定yum本地源的机器IP为192.168.1.100,需要访问共享源的IP为192.168.1.101 关闭并禁止selinux和firewalld 创建本地源 1.上传centos7光盘镜像到指定目录下(这里定为/usr/local/src)2.挂载镜像文件 #mkdir /media/cdro
阅读全文
摘要:OwnCloud9下载地址: https://download.owncloud.org/community/owncloud-9.1.1.zip //安装配置数据库 #yum install mariadb-server mariadb# systemctl start mariadb# syst
阅读全文
摘要:#mkdir -p /var/ftp/xcl/ #yum install -y vsftpd#useradd -g ftp -M -d /var/ftp/xcl -s /sbin/nologin xcl#passwd xcl#chown -R xcl:ftp /var/ftp/xcl/#vi /et
阅读全文
摘要:#vi /etc/systemd/system/xxx.service #systemctl enable xxx.service 参考:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html
阅读全文
摘要:程序名.conf放在/etcc/init/目录下# 注释 description "your-server" author "xxx" start on runlevel [2345] stop on runlevel [!2345] respawn #重试5次 间隔30秒 respawn limi
阅读全文
摘要://关闭selinuxgetenforcesetenfroce 0vi /etc/selinux/configSELINUX=disabledSELINUXTYPE=targeted//关闭防火墙#chkconfig iptables off#service iptables stop //安装PG
阅读全文
摘要:解决步骤: 将#!/usr/bin/python改为#!/usr/bin/python2.7 退出保存 相关错误: 【https://linuxconfig.org/how-to-switch-between-python-versions-on-fedora-linux】 Similarly: E
阅读全文
摘要:FYI
阅读全文
摘要:网络配置命令 查看当前网卡信息 ifconfig -a 修改网卡名称,需重启 vi /etc/udev/rules.d/70-persistent-net.rules 修改网卡配置信息 vi /etc/sysconfig/network-script/ifccfg-eth0 临时配制IP地址信息 i
阅读全文
摘要:注:所有RPM包均从网易镜像上下载 卸载Apache
阅读全文
摘要:ruby安装#安装ruby组件yum install ruby ruby-irb ruby-devel rubygems rpm-build -y#安装Apache服务器yum install httpd -ychkconfig httpd onservice httpd start#安装MySQL
阅读全文
摘要:Linux shell 操作 postgresql:删除间隔日期的数据-删除指定日期的数据-vacuumdb 清理数据库 -清理日志 -定期执行脚本 *修改pg_hba.conf 设置本地连接无密码,trust crontab 定期执行*添加执行任务 *查看执行任务 *查看执行情况 delDataA
阅读全文

浙公网安备 33010602011771号