摘要: yum -y install httpd mysql mysql-server php php-mysql php-gd php-xml chkconfig httpd on chkconfig mysqld on service httpd start service mysqld start m 阅读全文
posted @ 2017-05-27 16:27 秋裤大叔 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 登录到mysql后 grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;//password是对应的root密码 flush privileges; 阅读全文
posted @ 2017-04-12 10:06 秋裤大叔 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 服务器#yum install git#adduser git#passwd git#su git$cd~$mkdir .ssh && chmod 700 .ssh$touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys$mkdir 阅读全文
posted @ 2017-03-21 16:00 秋裤大叔 阅读(154) 评论(0) 推荐(0) 编辑
摘要: getSupportActionBar().setDisplayHomeAsUpEnabled(true); <activity android:name=".SecondActivity" android:parentActivityName=".MainActivity"> <!-- 这里的 m 阅读全文
posted @ 2017-03-02 16:54 秋裤大叔 阅读(185) 评论(0) 推荐(0) 编辑
摘要: sudo spctl --master-disable 阅读全文
posted @ 2016-09-17 11:11 秋裤大叔 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 在my.cnf中加入: [mysqld] character-set-server=utf8 [client]character-set-server=utf8 之后进入终端,通过运行service mysqld restart命令重新运行,即解决了乱码的问题. 注:项目也要使用utf-8的数据格式 阅读全文
posted @ 2016-09-07 21:09 秋裤大叔 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #vi /etc/httpd/conf/httpd.conf 添加下面配置 NameVirtualHost *:80 <VirtualHost *:80>ProxyPreserveHost OnServerName www.域名.comProxyPass / http://www.域名.com:80 阅读全文
posted @ 2016-09-07 16:27 秋裤大叔 阅读(12005) 评论(0) 推荐(0) 编辑
摘要: 修改密码 #mysqld_safe --skip-grant-tables --skip-networking & #mysql -u root MySql >update mysql.user set authentication_string=password('root123456') whe 阅读全文
posted @ 2016-09-07 16:22 秋裤大叔 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. #pkg_add -r xorg gnome2 gdm2. #ee /etc/rc.conf 加入hald_enable="YES" dbus_enable="YES gdm_enable="YES" gnome_enable="YES"3. # /usr/local/etc/rc.d/dbus start # /usr/local/etc/rc.d/hald start4. # ee /etc/fstab 加入proc /proc procfs rw 0 075. # mount /proc # /usr/local 阅读全文
posted @ 2013-05-23 12:09 秋裤大叔 阅读(382) 评论(0) 推荐(0) 编辑
摘要: # yum install gconf-editor打开gconf-editor找到/apps/panel/clock/prefs/(这是默认位置)修改custom_format的值为%Y-%m-%d %H:%M,也可自己定制其他修改format的值为custom 阅读全文
posted @ 2013-03-25 17:24 秋裤大叔 阅读(487) 评论(0) 推荐(0) 编辑