To install on Fedora:
yum install php-opcache
To turn on the opcache module, restart httpd service:
/bin/systemctl restart httpd.service
You will be able to see opcache running information in phpinfo.php.
A Linux blog by ioMeWeekly, includes tutorials, news, help, programming, tips and how-to guides for opensource applications.
yum install php-opcache
/bin/systemctl restart httpd.service
[root@F20-64 ~]# service sshd status
Redirecting to /bin/systemctl status sshd.service
sshd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@F20-64 ~]# yum install openssh-server
[root@F20-64 ~]# service sshd status
Redirecting to /bin/systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled)
Active: inactive (dead)
[root@F20-64 ~]# chkconfig sshd on
Note: Forwarding request to 'systemctl enable sshd.service'.
ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'
[root@F20-64 ~]# service sshd start
Redirecting to /bin/systemctl start sshd.service
badblocks -v /dev/sda1 > badblocks.txtThe above command will generate the file badblocks.txt. You can pass this file to the fsck command to record these bad blocks. Do make sure you type in the correct filesystem, etc ext3,ext4,xfs.
fsck -t ext3 -l badblocks.txt /dev/sda1Reference: Link1
yum install httpd php php-devel php-cli php-pear
yum install httpd php php-devel php-cli php-pear service httpd restart chkconfig httpd on
yum install mod_dav_svn subversion
vi /etc/httpd/conf.d/subversion.conf
cd /svn/repos/projectX svnadmin create svnrepo chown -R apache:apache svnrepo
htpasswd -cb /etc/svn-auth-file admin9 pass9 htpasswd -b /etc/svn-auth-file user8 pass8
htpasswd /etc/svn-auth-file user7
svn co http://192.168.0.5/svn/svnrepo/
cd svnrepo vi fileA.txt vi fileB.txt svn add fileA.txt fileB.txt svn ci fileA.txt fileB.txt -m "First commit"
yum install wkhtmltopdfTo convert, simply enter as below:
wkhtmltopdf http://google.com test.pdfHowever it will errored as it needs a X server:
wkhtmltopdf: cannot connect to X serverTo solve the problem, we can install:
yum install xorg-x11-server-XvfbCreate a shell script as below:
vi wkhtmltopdf.shAnd save with these parameters:
xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf $*And this is the way to run in commandline
wkhtmltopdf.sh http://www.google.com test.pdf
fdisk /dev/sda mke2fs -t ext3 /dev/sda4 mount /dev/sda4 /bench -t ext3 bonnie++ -d /bench/ -c 5 -s 1G -n 32 -m ext3
fdisk /dev/sda mke2fs -t ext4 /dev/sda4 mount /dev/sda4 /bench -t ext4 bonnie++ -d /bench/ -c 5 -s 1G -n 32 -m ext4
fdisk /dev/sda /sbin/mkfs.xfs /dev/sda4 mount /dev/sda4 /bench -t xfs bonnie++ -d /bench/ -c 5 -s 1G -n 32 -m xfsTo move the mysql datadir from "/var/lib/mysql" to "/bench", by editing mysql config file("/etc/my.cnf"). Replace
#datadir = /var/lib/mysql datadir = /benchCopy mysql datafiles to new location,change the owner,start the mysql server.
cp -fr /var/lib/mysql/* /bench chown mysql:mysql /bench -R service mysqld startCreate create_table.sql scripts:
vi create_table.sqlPaste below codes.
create table testTable (text1 varchar(50),number1 int) insert into testTable (text1,number1) values ('ERf56768ZSDR4567343',7894)Create queries.sql scripts:
vi queries.sqlPaste below codes.
select * from testTableRun the mysqlslap
mysqlslap --user=root --password --concurrency=50 --iterations=500 --create=create_table.sql --query=queries.sqlRepeat above steps for different filesystems. The results: EXT3 and EXT4 were good and quite comparable, followed by XFS.