• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






漫步沙滩

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2013年10月16日

centos安装postgresql
摘要: #安装postgresqlyum -y install postgresql-server#执行数据库初始化脚本service postgresql-9.2 initdb#启动服务service postgresql-9.2 start# 变更登录用户su - postgres# 登录数据库,修改postgres用户的数据库密码psqlpostgres=# ALTER USER postgres PASSWORD '123456';postgres=# \q# 退出变更登录exit# 编辑配置文件,配置可访问数据库的网络地址(注意别忘了去掉#listen_addresses=前 阅读全文
posted @ 2013-10-16 19:41 漫步沙滩 阅读(279) 评论(0) 推荐(0)
 
centos 安装apache
摘要: Apache2的是作为一个CentOS的软件包,因此我们可以直接用下面命令安装它: yum install httpd 现在配置系统在引导时启动Apache chkconfig --levels 235 httpd on 并启动Apache /etc/init.d/httpd start之后,到/etc/sysconfig/iptables (防火墙)中添加下面内容: -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT然后重新启动防火墙/网关: service iptables restart 现在,您的... 阅读全文
posted @ 2013-10-16 18:33 漫步沙滩 阅读(206) 评论(0) 推荐(0)